From 62bc26b4077ce68166f5510767b045ab07a9e4ab Mon Sep 17 00:00:00 2001 From: Krzysztof Nowak Date: Sun, 2 Apr 2017 20:27:50 +0200 Subject: [PATCH] template: addition of open graph tags * Adds the default and blog-specific open graph tags. Signed-off-by: Krzysztof Nowak --- templates/base.html | 12 ++++++++++++ templates/blogpost.html | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/templates/base.html b/templates/base.html index c717606..2b72f2c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,6 +21,18 @@ -#} +{% block og_image %} + +{% endblock %} +{% block og_title %} + +{% endblock %} +{% block og_type %} + +{% endblock %} +{% block og_description %} + +{% endblock %} diff --git a/templates/blogpost.html b/templates/blogpost.html index a915e2e..6921f1c 100644 --- a/templates/blogpost.html +++ b/templates/blogpost.html @@ -20,6 +20,14 @@ # submit itself to any jurisdiction. -#} {% extends "base-blog.html" %} +{% block og_title %} + +{% endblock %} +{% block og_type %} + +{% endblock %} +{% block og_description %} +{% endblock %} {% block title %}{{ this.title }} | Zenodo Blog {% endblock %} {% block body %} {% with title_link=False %}