Skip to content

Commit

Permalink
issues #6 and #7 customize credits
Browse files Browse the repository at this point in the history
option to enable / disable credits

option to change the credits valus

by default credits is enabled
  • Loading branch information
arulrajnet committed Jun 9, 2017
1 parent dc1cf00 commit 6c5de3f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,22 @@
<footer id="footer">
<div class="inner">
<section class="credits">
<span class="credits-theme">Theme <a href="https://github.com/arulrajnet/attila" rel="nofollow">Attila</a></span>
<span class="credits-software">Published with <a href="https://github.com/getpelican/pelican" rel="nofollow">Pelican</a></span>
{% if SHOW_CREDITS|default(True) %}
{% 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>
</div>
</footer>
Expand Down

0 comments on commit 6c5de3f

Please sign in to comment.