Merge pull request #1415

head: fix og links to include domain
This commit is contained in:
luigi1111 2021-01-23 21:12:29 -05:00 committed by GitHub
commit 1d0e0acf21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,16 +30,16 @@
{% endif %}">
<!-- If the page specifies a dedicated image which is not an SVG file, we use that one. Otherwise we use the classic Monero logo -->
<meta property="og:image" content="{% capture og_image %}
{% capture monero_logo %}{{ site.baseurl}}/press-kit/symbols/monero-symbol-on-white-480.png{% endcapture %}
{% capture monero_logo %}{{ site.url }}/press-kit/symbols/monero-symbol-on-white-480.png{% endcapture %}
{% if page.image %}
{% if page.image contains '.svg' or page.image contains '.SVG' %}{{ monero_logo }}
{% else %}{{ site.baseurl}}{{ page.image }}
{% else %}{{ site.url }}/{{ page.image }}
{% endif %}
{% else %}{{ monero_logo }}
{% endif %}
{% endcapture %}{{ og_image | strip }}">
<meta property="og:site_name" content="{% t global.sitename %}">
<meta property="og:url" content="https://getmonero.org{{ page.url }}">
<meta property="og:url" content="{{ site.url }}/{{ page.url }}">
<meta property="og:type" content="website">
<link rel="apple-touch-icon" sizes="180x180" href="/meta/apple-touch-icon.png">