From dcccb0ba79e37e5a0dcee51b73a10f505d1249a2 Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Mon, 18 Jan 2016 22:52:28 +0200 Subject: [PATCH] Make it possible to use SITESUBTITLE in the HTML tag --- README.md | 2 ++ templates/base.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 801ca3d..385382b 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,8 @@ Accept many analytics: - Set ``SHOW_FULL_ARTICLE`` to True to show full article content on index.html instead of summary; + - Set ``SHOW_SITESUBTITLE_IN_HTML`` to True to make use of the ``SITESUBTITLE`` + variable inside the <title> HTML tag; ### Articles diff --git a/templates/base.html b/templates/base.html index 112c928..d366ec6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,7 +13,7 @@ <meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}"> {% endif %} - <title>{% block title %}{{ SITENAME }}{% endblock title %} + {% block title %}{{ SITENAME }}{% if SITESUBTITLE and SHOW_SITESUBTITLE_IN_HTML %} - {{ SITESUBTITLE }}{% endif %}{% endblock title %} {% if FEED_ALL_ATOM %}