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

This commit is contained in:
erciccione 2020-02-05 20:15:23 +01:00
parent bb514879b9
commit 1ebebf346e
No known key found for this signature in database
GPG key ID: 762AF8C608E56CDF
2 changed files with 18 additions and 4 deletions

View file

@ -24,7 +24,7 @@ global:
tags: Articles By Tag
wikimeta: on Moneropedia, the open encyclopedia of Monero knowledge
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
privacy: Privacy
untranslated: This page is not yet translated. If you would like to help translate it, please see the

View file

@ -9,11 +9,25 @@
{% elsif page.title contains "titles." %}{% t page.title %} | {% 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.layout == 'moneropedia' %}{% t global.wikimeta %}
{% elsif page.summary %}{{ page.summary }}
{% else %}{% t global.titlemeta %}
{% endif %}">
<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: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:title" content="
{% 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:site_name" content="{% t global.sitename %}">
<meta property="og:url" content="https://getmonero.org{{ page.url }}">