From 0053e1bbc25b06f24df50199e6593b5e2d2133fd Mon Sep 17 00:00:00 2001 From: Terry Boon Date: Sun, 4 Dec 2016 23:42:42 +0000 Subject: Fix display of "About Me" in pelican-bootstrap3 The "About Me" block (defined in templates/includes/aboutme.html) consists of the image defined by AVATAR and the text in ABOUT_ME. However, the template only displays the block if ABOUT_ME is defined. If only AVATAR is defined, then the block is not displayed at all. - Change the test so the "About Me" block is displayed if either ABOUT_ME or AVATAR is defined. - Change the structure of the "About Me" block so that the heading for the ABOUT_ME text is displayed only if ABOUT_ME text is defined, to avoid an empty heading. If AVATAR is defined but ABOUT_ME is not, the block displays the AVATAR image only. --- pelican-bootstrap3/templates/base.html | 6 +++--- pelican-bootstrap3/templates/includes/aboutme.html | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index 6362e21..a33496c 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -168,7 +168,7 @@
- {% if not HIDE_SIDEBAR or ABOUT_ME %} + {% if not HIDE_SIDEBAR or ABOUT_ME or AVATAR %}
{% else %}
@@ -178,10 +178,10 @@ {% block content %} {% endblock %}
- {% if not HIDE_SIDEBAR or ABOUT_ME %} + {% if not HIDE_SIDEBAR or ABOUT_ME or AVATAR %} \ No newline at end of file -- cgit