diff options
author | Terry Boon <terry@tkb.me.uk> | 2016-12-04 23:42:42 +0000 |
---|---|---|
committer | Terry Boon <terry@tkb.me.uk> | 2016-12-04 23:49:15 +0000 |
commit | 0053e1bbc25b06f24df50199e6593b5e2d2133fd (patch) | |
tree | 729063955fd84405f4178ce629877256b55c9e2f /pelican-bootstrap3/templates/includes/aboutme.html | |
parent | 993211cbda11ede17e3206e208490124d8f02a43 (diff) | |
download | pelican-themes-0053e1bbc25b06f24df50199e6593b5e2d2133fd.tar.gz |
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.
Diffstat (limited to 'pelican-bootstrap3/templates/includes/aboutme.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/aboutme.html | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ <img width="100%" class="img-thumbnail" src="{{ AVATAR }}"/> </p> {% endif %} + {% if ABOUT_ME %} <p> <strong>About {{ AUTHOR }}</strong><br/> {{ ABOUT_ME }} </p> + {% endif %} </div>
\ No newline at end of file |