metadata fixes, added OpenGraph tags

This commit is contained in:
Riccardo Spagni 2015-02-28 11:06:57 +02:00
parent da03d5f480
commit 20537007e3
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 9 additions and 2 deletions

View file

@ -3,10 +3,16 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.entry %} {{ page.entry }} | {% t global.wiki %} | {% t index.page_title %} {% elsif tag %} {% t global.tags %}: {{ tag.name }} | {% t index.page_title %} {% elsif page.title %} {{ page.title }} | {% t index.page_title %} {% else %} {% t index.page_title %} {% endif %}</title> <title>{% if page.entry %}{{ page.entry }} | {% t global.wiki %} | {% t index.page_title %}{% elsif tag %}{% t global.tags %}: {{ tag.name }} | {% t index.page_title %}{% elsif page.title %}{{ page.title }} | {% t index.page_title %}{% else %}{% t index.page_title %}{% endif %}</title>
<meta name="description" content="{% if page.entry %} {{ page.entry }}: {{ page.summary }} [{% t global.wikimeta %}] {% elsif tag %} {% t global.tagsmeta %}: {{ tag.name }} {% elsif page.meta %} {{ page.meta }} {% elsif page.title %} {{ page.title }} [{% t global.titlemeta %}] {% else %} {{ site.description }} {% endif %}"> <meta name="description" content="{% if page.entry %}{{ page.entry }}: {{ page.summary }} [{% t global.wikimeta %}]{% elsif tag %}{% t global.tagsmeta %}: {{ tag.name }}{% elsif page.meta %}{{ page.meta }}{% elsif page.title %}{{ page.title }} [{% t global.titlemeta %}]{% else %}{{ site.description }}{% endif %}">
<meta name="keywords" content="{{ site.keywords }}"> <meta name="keywords" content="{{ site.keywords }}">
<meta property="og:title" content="{% if page.entry %}{% t global.wiki %}: {{ page.entry }}{% elsif tag %}{% t global.tags %}: {{ tag.name }}{% elsif page.title %}{% t global.monero %}: {{ page.title }}{% else %}{% t index.page_title %}{% endif %}"/>
<meta property="og:type" content="website">
<meta property="og:description" content="{% if page.entry %}{{ page.entry }}: {{ page.summary }} [{% t global.wikimeta %}]{% elsif tag %}{% t global.tagsmeta %}: {{ tag.name }}{% elsif page.meta %}{{ page.meta }}{% elsif page.title %}{{ page.title }} [{% t global.titlemeta %}]{% else %}{{ site.description }}{% endif %}">
<meta property="og:image" content="{% if page.icon %}http://static.getmonero.org/images/opengraph/{{ page.icon }}.png{% else %}http://static.getmonero.org/images/opengraph/logo.png{% endif %}">
<meta property="og:site_name" content="{% t global.sitename %}">
<link href="//static.getmonero.org/css/bootstrap.min.css" rel="stylesheet"> <link href="//static.getmonero.org/css/bootstrap.min.css" rel="stylesheet">
<link href="//static.getmonero.org/css/main.css?1" rel="stylesheet"> <link href="//static.getmonero.org/css/main.css?1" rel="stylesheet">

View file

@ -4,6 +4,7 @@ global:
getting_started: Getting Started getting_started: Getting Started
copyright: Copyright copyright: Copyright
monero_project: The Monero Project monero_project: The Monero Project
sitename: getmonero.org, The Monero Project
wiki: Moneropedia wiki: Moneropedia
tags: Articles By Tag tags: Articles By Tag
wikimeta: on Moneropedia, the open encyclopedia of Monero knowledge wikimeta: on Moneropedia, the open encyclopedia of Monero knowledge