Commit e0c5a2c4 authored by luigi1111's avatar luigi1111

Merge !1216

Fix broken meta tags (description, og:title, og:description)

Closes #925

See merge request monero-project/monero-site!1216
parents 984f2b80 1ebebf34
...@@ -9,7 +9,7 @@ global: ...@@ -9,7 +9,7 @@ global:
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
tagsmeta: All Monero blog articles that are tagged tagsmeta: All Monero blog articles that are tagged
titlemeta: on the home of Monero, a digital currency that is secure, private, and untraceable titlemeta: Monero, a digital currency that is secure, private, and untraceable
terms: Terms terms: Terms
privacy: Privacy privacy: Privacy
untranslated: This page is not yet translated. If you would like to help translate it, please see the untranslated: This page is not yet translated. If you would like to help translate it, please see the
......
...@@ -9,11 +9,25 @@ ...@@ -9,11 +9,25 @@
{% elsif page.title contains "titles." %}{% t page.title %} | {% t index.page_title %} {% elsif page.title contains "titles." %}{% t page.title %} | {% t index.page_title %}
{% elsif page.title %} {{page.title}} | {% t index.page_title %} {% elsif page.title %} {{page.title}} | {% t index.page_title %}
{% else %}{% t index.page_title %}{% endif %}</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.layout == 'moneropedia' %}{% t global.wikimeta %}
{% elsif page.summary %}{{ page.summary }}
{% else %}{% t global.titlemeta %}
{% 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:title" content="
<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 %}"> {% t page.title %}{% if page.entry %}: {% t page.entry %}{% endif %}
{% if page.layout == 'user-guide' %}
{% if page.permalink contains 'developer' %}{% t titles.developerguides %}{% else %}{% t titles.userguides %}{% endif %}: {{ page.title }}
{% elsif page.permalink == 'index.html' %}{% t titles.themoneroproject %}
{% elsif page.layout == 'post' %}{% t titles.blogbytag %}: {{ page.title }}
{% endif %}" />
<meta property="og:description" content="
{% if page.layout == 'moneropedia' %}{% t global.wikimeta %}
{% elsif page.summary %}{{ page.summary }}
{% else %}{% t global.titlemeta %}
{% 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: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 %}"> <meta property="og:site_name" content="{% t global.sitename %}">
<meta property="og:url" content="https://getmonero.org{{ page.url }}"> <meta property="og:url" content="https://getmonero.org{{ page.url }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment