diff options
author | Paul Winkler <slinkp@gmail.com> | 2024-05-08 16:15:04 -0400 |
---|---|---|
committer | Paul Winkler <slinkp@gmail.com> | 2024-05-08 16:40:58 -0400 |
commit | 8649bd37169807f1459d355fd985c7f2e7d6db02 (patch) | |
tree | 50f5f42d75707cb765891008f1357ae8e30d6deb /gum | |
parent | ecb1f9ca41139b6aba71871b06152130fd7f6372 (diff) | |
download | pelican-themes-8649bd37169807f1459d355fd985c7f2e7d6db02.tar.gz |
Gum: Add support for injecting markup to footer via overriding extra_footer.html template
Diffstat (limited to 'gum')
-rw-r--r-- | gum/README.md | 4 | ||||
-rw-r--r-- | gum/templates/base.html | 1 | ||||
-rw-r--r-- | gum/templates/extra_footer.html | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/gum/README.md b/gum/README.md index 2a23805..75091c0 100644 --- a/gum/README.md +++ b/gum/README.md @@ -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: ``` diff --git a/gum/templates/base.html b/gum/templates/base.html index 998cac0..bb45549 100644 --- a/gum/templates/base.html +++ b/gum/templates/base.html @@ -122,6 +122,7 @@ <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>. diff --git a/gum/templates/extra_footer.html b/gum/templates/extra_footer.html new file mode 100644 index 0000000..c4ec353 --- /dev/null +++ b/gum/templates/extra_footer.html @@ -0,0 +1 @@ +<!-- override this to add custom footer html --> |