OpenGraph compatibility
This commit is contained in:
parent
3b25dec341
commit
77bec1d487
2 changed files with 18 additions and 1 deletions
|
|
@ -15,6 +15,21 @@
|
|||
</div>
|
||||
|
||||
{% if config.extra.mastodon_user %}
|
||||
<meta name="fediverse:creator" content="{{ config.extra.mastodon_user}}">
|
||||
<meta name="fediverse:creator" content="{{ config.extra.mastodon_user}}"/>
|
||||
{% endif %}
|
||||
<meta name="og:title" content="{{ page.title }}"/>
|
||||
<meta name="og:type" content="article"/>
|
||||
<meta name="article:published_time" content="{{ page.date }}"/>
|
||||
{% if page.updated %}
|
||||
<meta name="article:modified_time" content="{{ page.updated }}"/>
|
||||
{% endif %}
|
||||
{% if page.authors[0] %}
|
||||
<meta name="og:article:author" content="{{ page.authors[0] }}"/>
|
||||
{% elif config.author %}
|
||||
<meta name="og:article:author" content="{{ config.author }}"/>
|
||||
{% endif %}
|
||||
<meta name="og:url" content="{{ page.permalink }}"/>
|
||||
{% if page.extra.image %}
|
||||
<meta name="og:image" content="{{ page.permalink }}{{ page.extra.image }}"/>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue