Blog: OpenGraph tags
This commit is contained in:
parent
9afe876e56
commit
939798238a
2 changed files with 25 additions and 0 deletions
|
|
@ -4,6 +4,16 @@
|
|||
|
||||
{% block head %}
|
||||
<meta property="og:title" content="{{page.title}}"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta property="og:title" content="{{page.permalink}}"/>
|
||||
<meta property="og:locale" content="{{lang}}"/>
|
||||
{% for t in page.translations %}
|
||||
{% if t.lang|default(value=config.default_language) != lang %}
|
||||
<meta property="og:locale:alternate" content="{{t.lang|default(value=config.default_language)}}"/>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<meta property="og:description" content="{{page.description}}"/>
|
||||
<meta property="og:site_name" content="{{config.extra.sitename}}"/>
|
||||
{% if page.extra.katex %}{{macros::katex()}}{% endif %}
|
||||
{% endblock head %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue