mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-16 15:58:16 +00:00
Merge pull request #1002
Meta tags: Change opengraph logo and add possiblity to use custom one
This commit is contained in:
commit
56ce7975d7
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue