issues #6 and #7 customize credits

option to enable / disable credits

option to change the credits valus

by default credits is enabled
This commit is contained in:
Arul 2017-06-10 01:20:59 +05:30
parent dc1cf00d49
commit 6c5de3f38b

View file

@ -105,8 +105,22 @@
<footer id="footer"> <footer id="footer">
<div class="inner"> <div class="inner">
<section class="credits"> <section class="credits">
<span class="credits-theme">Theme <a href="https://github.com/arulrajnet/attila" rel="nofollow">Attila</a></span> {% if SHOW_CREDITS|default(True) %}
<span class="credits-software">Published with <a href="https://github.com/getpelican/pelican" rel="nofollow">Pelican</a></span> {% if SHOW_CREDITS and SHOW_CREDITS.left %}
{% set left=SHOW_CREDITS.left %}
{% else %}
{% set left='Theme <a href="https://github.com/arulrajnet/attila" rel="nofollow">Attila</a>' %}
{% endif %}
{% if SHOW_CREDITS and SHOW_CREDITS.right %}
{% set right=SHOW_CREDITS.right %}
{% else %}
{% set right='Published with <a href="https://github.com/getpelican/pelican" rel="nofollow">Pelican</a>' %}
{% endif %}
<span class="credits-theme">{{left}}</span>
<span class="credits-software">{{right}}</span>
{% endif %}
</section> </section>
</div> </div>
</footer> </footer>