Merge pull request #1002

Meta tags: Change opengraph logo and add possiblity to use custom one
This commit is contained in:
luigi1111 2020-06-24 13:44:01 -05:00 committed by GitHub
commit 56ce7975d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -190,6 +190,8 @@ author: YOUR NAME OR HANDLE HERE
---
```
If you want to add a personalized picture to a blog post that will show as logo on social networks, add `image: /blog/assets/$FOLDER/$IMAGE` to the front matter. Where `$FOLDER` is the name of the folder you created to contain the image related to your blog post and `$IMAGE` is the name of the image.
### 3. Write
After the front matter is finished you are free to write the remainder of your blog post in markdown.

View file

@ -28,7 +28,8 @@
{% 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 %}">
<!-- If the page specifies a dedicated image we use that one, otherwise we use the classic Monero logo -->
<meta property="og:image" content="{% if page.image %}https://getmonero.org{{ page.image }}{% else %}https://getmonero.org/press-kit/symbols/monero-symbol-on-white-480.png{% endif %}">
<meta property="og:site_name" content="{% t global.sitename %}">
<meta property="og:url" content="https://getmonero.org{{ page.url }}">
<meta property="og:type" content="website">