Add metadata description and open graph tags

This commit is contained in:
Tom Gurion
2017-08-28 18:32:58 +01:00
parent 1d615a6670
commit 6c7fe23989
2 changed files with 19 additions and 1 deletions
+8
View File
@@ -1,5 +1,13 @@
{% extends "base.html" %}
{% block metadata %}
<meta name="description" content="{% if article.description %}{{ article.description }}{% else %}{{ BIO }}{% endif %}">
<meta property="og:description" content="{% if article.description %}{{ article.description }}{% else %}{{ BIO }}{% endif %}">
<meta property="og:title" content="{{ article.title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
{% endblock %}
{% block content %}
<div class="post">
<h1 class="post-title">{{ article.title }}</h1>