Insert opengraph metatags
This commit is contained in:
parent
7a83e97a60
commit
ea156f8f17
@ -17,6 +17,17 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block opengraph %}
|
||||||
|
{{ super() }}
|
||||||
|
<meta property="og:type" content="article">
|
||||||
|
<meta property="article:author" content="{{ author }}">
|
||||||
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}">
|
||||||
|
<meta property="og:title" content="{{ article.title }}">
|
||||||
|
<meta property="og:description" content="{{ article.headline }}">
|
||||||
|
<meta property="og:image" content="{{ SITEURL }}/{{ article.header_cover }}">
|
||||||
|
<meta property="article:published_time" content="{{ article.date }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{% if article.header_cover %}
|
{% if article.header_cover %}
|
||||||
|
@ -61,6 +61,11 @@
|
|||||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
|
||||||
|
{% block opengraph %}
|
||||||
|
<meta property="og:locale" content="{{ DEFAULT_LANG }}">
|
||||||
|
<meta property="og:site_name" content="{{ SITENAME }}">
|
||||||
|
{% endblock opengraph %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user