Allows the footer to be customized

This commit is contained in:
Adrian Winterstein 2024-07-29 21:22:52 +02:00
parent 3a01898820
commit 9e7ddd6f27
2 changed files with 13 additions and 0 deletions

View file

@ -116,6 +116,17 @@ highlight_themes_css = [
]
```
## Custom Footer Content
To overwrite the default footer (copyright notice), extend the `layout.html` template of the theme as described in the [Zola documentation](https://www.getzola.org/documentation/themes/extending-a-theme/#overriding-a-block) by creating a `layout.html` with the following content in your `templates` directory:
```jinja
{% extends "blow/templates/layout.html" %}
{% block content_footer %}
Here is my own footer with a <a href="http://example.com">link</a>.
{% endblock %}
```
## Features
- [X] Dark/Light modes (with syntax highlighting depending on selected theme)
- [X] Customizable navbar links

View file

@ -297,7 +297,9 @@
<div class="mt-16 border-t-2 border-gray-300 flex flex-col items-center">
<div class="sm:w-2/3 text-center py-6">
<p class="text-sm text-black dark:text-white font-bold mb-2">
{% block content_footer %}
© {{ now() | date(format="%Y") }} <a href="https://www.getzola.org/themes/blow/">blow</a> theme made with <a href="https://tailwindcss.com/" target="_blank">tailwindcss</a> for <a href="https://www.getzola.org/" target="_blank">Zola</a>
{% endblock %}
</p>
</div>
</div>