Skip to content

Commit

Permalink
Merge pull request #21 from awinterstein/customizable-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
tchartron authored Aug 3, 2024
2 parents 3a01898 + 9e7ddd6 commit 4174311
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4174311

Please sign in to comment.