Make it possible to use SITESUBTITLE in the <title> HTML tag

This commit is contained in:
Mr. Senko 2016-01-18 22:52:28 +02:00
parent 517529f633
commit dcccb0ba79
2 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,8 @@ Accept many analytics:
- Set ``SHOW_FULL_ARTICLE`` to True to show full article content on index.html - Set ``SHOW_FULL_ARTICLE`` to True to show full article content on index.html
instead of summary; instead of summary;
- Set ``SHOW_SITESUBTITLE_IN_HTML`` to True to make use of the ``SITESUBTITLE``
variable inside the <title> HTML tag;
### Articles ### Articles

View File

@ -13,7 +13,7 @@
<meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}"> <meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}">
{% endif %} {% endif %}
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title> <title>{% block title %}{{ SITENAME }}{% if SITESUBTITLE and SHOW_SITESUBTITLE_IN_HTML %} - {{ SITESUBTITLE }}{% endif %}{% endblock title %}</title>
{% if FEED_ALL_ATOM %} {% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />