Add Open Graph and Twitter meta tags
This commit is contained in:
parent
bb4200505e
commit
f8d3a60e50
3 changed files with 31 additions and 0 deletions
|
|
@ -4,6 +4,15 @@
|
|||
|
||||
{% block description %}{% if page.description %}{{ page.description }}{% else %}{{ config.description }}{% endif %}{% endblock description %}
|
||||
|
||||
{% block canonical %}{{ page.permalink }}{% endblock canonical %}
|
||||
{% block og_title %}{{ page.title }}{% endblock og_title %}
|
||||
{% block og_description %}{% if page.description %}{{ page.description }}{% else %}{{ config.description }}{% endif %}{% endblock og_description %}
|
||||
{% block og_url %}{{ page.permalink }}{% endblock og_url %}
|
||||
{% block og_type %}article{% endblock og_type %}
|
||||
{% block og_extra %}{% if page.date %}<meta property="article:published_time" content="{{ page.date }}">{% endif %}{% endblock og_extra %}
|
||||
{% block twitter_title %}{{ page.title }}{% endblock twitter_title %}
|
||||
{% block twitter_description %}{% if page.description %}{{ page.description }}{% else %}{{ config.description }}{% endif %}{% endblock twitter_description %}
|
||||
|
||||
{% block content %}
|
||||
<article>
|
||||
<header class="post-header">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue