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/includes/aboutme.html | 2 ++
1 file changed, 2 insertions(+)
(limited to 'pelican-bootstrap3/templates/includes/aboutme.html')
diff --git a/pelican-bootstrap3/templates/includes/aboutme.html b/pelican-bootstrap3/templates/includes/aboutme.html
index f38f0bc..fefc6eb 100644
--- a/pelican-bootstrap3/templates/includes/aboutme.html
+++ b/pelican-bootstrap3/templates/includes/aboutme.html
@@ -4,8 +4,10 @@
{% endif %}
+ {% if ABOUT_ME %}
About {{ AUTHOR }}
{{ ABOUT_ME }}
+ {% endif %}
\ No newline at end of file
--
cgit