Insert opengraph metatags

This commit is contained in:
gilsondev 2015-09-04 23:14:31 -03:00
parent 7a83e97a60
commit ea156f8f17
2 changed files with 16 additions and 0 deletions

View File

@ -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 %}

View File

@ -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>