aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Imbleau2022-05-09 07:26:55 -0400
committerJieiku2022-05-30 23:51:32 -0700
commit58e3b46c6dfe7974d17c1441e671520c4d999ac9 (patch)
tree11096a2fa21771f49027d8cc45b3037583de35ca
parente9b264400fe4a08f75ac05b02f57902bfbfa9401 (diff)
downloadabridge-58e3b46c6dfe7974d17c1441e671520c4d999ac9.tar.gz
abridge-58e3b46c6dfe7974d17c1441e671520c4d999ac9.tar.bz2
abridge-58e3b46c6dfe7974d17c1441e671520c4d999ac9.zip
Enabled override of footer credit
-rw-r--r--config.toml2
-rw-r--r--templates/base.html13
2 files changed, 10 insertions, 5 deletions
diff --git a/config.toml b/config.toml
index 82953e9..1892d86 100644
--- a/config.toml
+++ b/config.toml
@@ -37,7 +37,7 @@ readtime_string = "min" # read time indication eg "min": - 1 min "min read": -
recent = true
recent_items = 9
footer_credit = true
-
+#footer_credit_override = '<p>Powered by <a href="https://github.com/Jieiku/abridge">the Rust community</a></p>'
textlogo = '<font color="#f90">A</font>bridge'
sitedesc = false # enables or disables the display of the site description below the logo.
#copyright_start_year = 2019 # optional
diff --git a/templates/base.html b/templates/base.html
index 237bf41..3b0ee85 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -79,10 +79,15 @@
<a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}">{{ i.name }}</a> &nbsp;
{%- endfor %}
</p>
-
- {%- if config.extra.footer_credit | default(value=true) %}
- <p>Powered by <a href="https://www.getzola.org/">Zola</a> and <a href="https://github.com/jieiku/abridge/">Abridge</a></p>
- {%- endif %}
+ <p>{% for i in config.extra.menu_footer %}<a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}">{{ i.name }}</a> &nbsp; {% endfor %}</p>
+ {# Optional footer credit #}
+ {% if config.extra.footer_credit | default(value=true) %}
+ {% if config.extra.footer_credit_override %}
+ {{ config.extra.footer_credit_override | safe }}
+ {% else %}
+ <p>Powered by <a href="https://www.getzola.org/">Zola</a> and <a href="https://github.com/jieiku/abridge/">Abridge</a></p>
+ {% endif %}
+ {% endif %}
</center>
</footer>
{%- endblock footer %}