Merge pull request #23 from MrSenko/sitesubtitle_in_title

Show SITESUBTITLE in <title>
This commit is contained in:
Gilson Filho 2016-01-25 21:30:27 -02:00
commit f26dd2b92f
2 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ Accept many analytics:
- ``GOOGLE_SITE_VERIFICATION`` - Google site verification token;
- 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

View File

@ -13,7 +13,7 @@
<meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}">
{% 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 %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />