Add metatags

This commit is contained in:
hiro 2019-03-25 17:56:23 +01:00
parent 02d22d538e
commit 640815f46b
4 changed files with 19 additions and 23 deletions

View File

@ -1,10 +1,4 @@
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ '/static/bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/fontawesome/css/all.min.css'|asseturl }}" rel="stylesheet">
<title>{{ _("Tor Project") }} | {% block title %}{{ this.title }}{% endblock %}</title>
{% include 'meta.html' %}
<body class="no-gutters">
<header>
{% include 'navbar.html' %}

View File

@ -1,11 +1,4 @@
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ '/static/bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/fontawesome/css/all.min.css'|asseturl }}" rel="stylesheet">
<title>{{ _("Tor Project") }} | {% block title %}{{ this.title }}{% endblock %}</title>
{% include 'meta.html' %}
<body class="no-gutters">
<header>
{% include 'navbar.html' %}

View File

@ -1,11 +1,4 @@
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ '/static/bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/fontawesome/css/all.min.css'|asseturl }}" rel="stylesheet">
<title>{{ _("Tor Project") }} | {% block title %}{{ this.title }}{% endblock %}</title>
{% include 'meta.html' %}
<body class="no-gutters">
<header>
{% include 'navbar.html' %}

16
templates/meta.html Normal file
View File

@ -0,0 +1,16 @@
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Defend yourself against tracking and surveillance. Circumvent censorship.">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@torproject" />
<meta name="twitter:creator" content="@torproject" />
<meta property="og:url" content="https://torproject.org" />
<meta property="og:title" content="The Tor Project | Privacy & Freedom Online" />
<meta property="og:description" content="Defend yourself against tracking and surveillance. Circumvent censorship." />
<meta property="og:image" content="" />
<link rel="stylesheet" href="{{ '/static/bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/open-iconic/font/css/open-iconic-bootstrap.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/static/fonts/fontawesome/css/all.min.css'|asseturl }}" rel="stylesheet">
<title>{{ _("Tor Project") }} | {% block title %}{{ this.title }}{% endblock %}</title>