Skip to content

Commit

Permalink
feat!: add extra.footer.author option
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jul 19, 2024
1 parent 619e1ad commit a98f25e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ links = [

[extra.footer]
enabled = true
author = true
copyright = true
hash = true
stack = true
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h1 class="section-title">{%- block page_title %}{% if page.title %}{{ page.titl
<section class="footer-content">
{% set current_year = now() | date(format="%Y") %}
<footer id="footer-block">
<p>{% if config.extra.footer.hash == true %}{{ hash | truncate(length=7, end="") }} {% endif %}{% if config.extra.footer.copyright == true %}<b>©</b> {{ current_year }} <b>{{ config.author }}</b>{% endif %}</p>
<p>{% if config.extra.footer.hash %}{{ hash | truncate(length=7, end="") }} {% endif %}{% if config.extra.footer.copyright %}<b>©</b> {{ current_year }}{% endif %} {% if config.extra.footer.author %}<b>{{ config.author }}</b>{% endif %}</p>
{% if config.extra.footer.stack == true %}
<p>Powered by <a href="https://www.getzola.org" target="_blank">Zola</a> & <a href="https://halve-z.netlify.app" target="_blank">Halve-Z</a></p>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ links = [

[extra.footer]
enabled = true
author = true
copyright = true
hash = false
stack = true
Expand Down

0 comments on commit a98f25e

Please sign in to comment.