mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-17 00:07:54 +00:00
Fix broken meta tags (description, og:title, og:description)
This commit is contained in:
parent
bb514879b9
commit
1ebebf346e
2 changed files with 18 additions and 4 deletions
|
@ -24,7 +24,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 @@
|
||||||
{% 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 }}">
|
||||||
|
|
Loading…
Reference in a new issue