danielmochdotcom

Nikola site for www.danielmoch.com
git clone git://git.danielmoch.com/danielmochdotcom.git
Log | Files | Refs

commit 7d192c603b1efaca0bdbe01dac5536b4d4138d89
parent 1a495c4d3d3df47ea1d10afa86bb346f50e3ea16
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Thu, 11 Jul 2019 20:57:14 -0400

Remove content footer

Diffstat:
Mconf.py | 2+-
Mthemes/djmoch/assets/site.css | 4++++
Mthemes/djmoch/templates/base.tmpl | 10+++++++---
Mthemes/djmoch/templates/post.tmpl | 1+
4 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/conf.py b/conf.py @@ -942,7 +942,7 @@ # A small copyright notice for the page footer (in HTML). # (translatable) -CONTENT_FOOTER = 'Contents &copy; {date} <a href="mailto:{email}">{author}</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a> {license}' +# CONTENT_FOOTER = "" # Things that will be passed to CONTENT_FOOTER.format(). This is done # for translatability, as dicts are not formattable. Nikola will diff --git a/themes/djmoch/assets/site.css b/themes/djmoch/assets/site.css @@ -153,3 +153,7 @@ body margin-bottom: 1.0em; border-radius: 15px; } +.footer { + text-align: right; + padding-top: 1em; +} diff --git a/themes/djmoch/templates/base.tmpl b/themes/djmoch/templates/base.tmpl @@ -30,9 +30,13 @@ <div class="row"> <div class="col-xs-12 col-md-7 content"> {% block content %}{% endblock %} - <em> - {% block footer %}{% endblock %} - </em> + {% if content_footer %} + <div class="footer"> + <em> + {% block footer %}{% endblock %} + </em> + </div> + {% endif %} </div> <div class="sidebar col-xs-12 col-md-4"> {{ sidebar.build_sidebar() }} diff --git a/themes/djmoch/templates/post.tmpl b/themes/djmoch/templates/post.tmpl @@ -46,4 +46,5 @@ on {% endblock %} {% block footer %} +{{ content_footer }} {% endblock %}