Added article image configuration options
This commit is contained in:
parent
0ad6ebb2c7
commit
caf34d5038
3 changed files with 15 additions and 4 deletions
|
@ -64,6 +64,10 @@ FEDIRING = False
|
|||
FEDIRINGRANDOM = True
|
||||
FEDIRINGURL = '' # This is needed because the SITEURL includes the https:// and Fediring doesn't want that part.
|
||||
|
||||
# Article Customization
|
||||
#
|
||||
SHOW_BOTTOM_IMAGE = False # This defaults as false, change to true if you want to show the article image at the bottom
|
||||
SHOW_TOP_IMAGE = True # This shows the article image at the top before the content. It will not be included in the ATOM or RSS feed.
|
||||
# Commenting
|
||||
#
|
||||
MASTODON_COMMENTS = False
|
||||
|
|
|
@ -102,6 +102,11 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
<div class="entry-content">
|
||||
|
||||
{% if article.photo_image and SHOW_TOP_IMAGE == True %}
|
||||
<a href="{{ SITEURL }}/{{ article.photo_image[1] }}"><img style="display: block; margin: 0 auto 0 0;" src="{{ SITEURL }}/{{ article.photo_image[1] }}" /></a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{{ article.content }}
|
||||
|
||||
|
@ -170,7 +175,7 @@
|
|||
|
||||
|
||||
<section id="article-footer">
|
||||
{% if article.photo_image %}
|
||||
{% if article.photo_image and SHOW_BOTTOM_IMAGE == True %}
|
||||
<a href="{{ SITEURL }}/{{ article.photo_image[1] }}"><img style="display: block; margin: 0 auto 0 0;" src="{{ SITEURL }}/{{ article.photo_image[2] }}" /></a>
|
||||
{% endif %}
|
||||
{% if ARTICLE_FOOTER == true %}
|
||||
|
|
|
@ -176,9 +176,11 @@
|
|||
|
||||
<!-- Footer -->
|
||||
<footer id="footer">
|
||||
<p class="copyright">© Untitled. All rights reserved. Original design inspired by: <a href="https://html5up.net">HTML5 UP</a>. <br />
|
||||
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>. <br />
|
||||
Modifed by <a href="https://jeffmackinnon.com/i-built-a-pelican-theme.html">Jeff MacKinnon</a></p>
|
||||
<p class="copyright">© Untitled. All rights reserved.<br />
|
||||
Original design inspired by: <a href="https://html5up.net">HTML5 UP</a>.<br />
|
||||
Modifed by <a href="https://jeffmackinnon.com/i-built-a-pelican-theme.html">Jeff MacKinnon</a><br />
|
||||
{% if POWEREDBY == True %}Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>.{% endif %}
|
||||
</p>
|
||||
{% if SITELICENSE %}
|
||||
{{ SITELICENSE }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue