summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2020-04-12 16:21:08 +0200
committerJustin Mayer <entroP@gmail.com>2020-04-12 17:02:06 +0200
commit212742a56f66bc6636961e0295391ad3285be159 (patch)
tree0a54dba2cabc750dbae406130c9a13c7c43df8c8
parent7bbd3dc6fbd31da5ce69a1347c5f72db73a5e6fc (diff)
downloadpelican-212742a56f66bc6636961e0295391ad3285be159.tar.gz
Ensure consistent title spacing in themes
Moving the space between the title and sub-title inside the "if" statement eliminates a spurious trailing space when there is no sub-title defined.
-rw-r--r--pelican/themes/notmyidea/templates/base.html2
-rw-r--r--pelican/themes/simple/templates/base.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html
index a5fb5be8..66ec83ab 100644
--- a/pelican/themes/notmyidea/templates/base.html
+++ b/pelican/themes/notmyidea/templates/base.html
@@ -16,7 +16,7 @@
<body id="index" class="home">
{% include 'github.html' %}
<header id="banner" class="body">
- <h1><a href="{{ SITEURL }}/">{{ SITENAME }} {% if SITESUBTITLE %}<strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
+ <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
<nav><ul>
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
diff --git a/pelican/themes/simple/templates/base.html b/pelican/themes/simple/templates/base.html
index 29bbeb27..9a97c254 100644
--- a/pelican/themes/simple/templates/base.html
+++ b/pelican/themes/simple/templates/base.html
@@ -33,7 +33,7 @@
<body id="index" class="home">
<header id="banner" class="body">
- <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
+ <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
</header><!-- /#banner -->
<nav id="menu"><ul>
{% for title, link in MENUITEMS %}