From d536cd223957cc2591cbc0b1307007d07deba50c Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Wed, 15 Apr 2020 16:54:17 +0200 Subject: [PATCH] Put summary in notmyidea "description" HTML metadata --- pelican/themes/notmyidea/templates/article.html | 7 +++++++ pelican/themes/notmyidea/templates/base.html | 2 ++ 2 files changed, 9 insertions(+) diff --git a/pelican/themes/notmyidea/templates/article.html b/pelican/themes/notmyidea/templates/article.html index 98c91bbc..6abcb09d 100644 --- a/pelican/themes/notmyidea/templates/article.html +++ b/pelican/themes/notmyidea/templates/article.html @@ -1,5 +1,12 @@ {% extends "base.html" %} {% block html_lang %}{{ article.lang }}{% endblock %} +{% block head -%} + {{ super() -}} + {% if article.summary %} + + {% endif %} +{% endblock %} + {% block title %}{{ article.title|striptags }}{% endblock %} {% block extra_head %} diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html index 34ed4e97..6be5f1d8 100644 --- a/pelican/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -1,6 +1,7 @@ + {% block head %} {% block title %}{{ SITENAME }}{%endblock%} @@ -12,6 +13,7 @@ {% endif %} {% block extra_head %}{% endblock extra_head %} + {% endblock head %}