Skip to content

Commit

Permalink
Gum: Add support for injecting markup to footer via overriding extra_…
Browse files Browse the repository at this point in the history
…footer.html template
  • Loading branch information
slinkp committed May 8, 2024
1 parent ecb1f9c commit 8649bd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ To use Disqus, add the Disqus site name via the following variable.
DISQUS_SITENAME = ''
```


To add content or markup to the footer of every page: Add an `extra_footer.html` file to
a directory in your `THEME_TEMPLATES_OVERRIDES` path. It is empty by default.

Other features include:

```
Expand Down
1 change: 1 addition & 0 deletions gum/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong><
<footer id="credits" class="row">
<div class="seven columns left-center">

{% include 'extra_footer.html' %}
<address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>.
Expand Down
1 change: 1 addition & 0 deletions gum/templates/extra_footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- override this to add custom footer html -->

0 comments on commit 8649bd3

Please sign in to comment.