aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJieiku2022-05-16 12:41:43 -0700
committerJieiku2022-05-31 01:13:11 -0700
commit333bdebf1581e5b2ef081ec7c50b18258cd14ae2 (patch)
tree4b85dbee10e6d31094fa0389c3ead822f8163641
parent0d76342ec78d3eb029235bef4c7c7fd201dcadd2 (diff)
downloadabridge-333bdebf1581e5b2ef081ec7c50b18258cd14ae2.tar.gz
abridge-333bdebf1581e5b2ef081ec7c50b18258cd14ae2.tar.bz2
abridge-333bdebf1581e5b2ef081ec7c50b18258cd14ae2.zip
Configurable Display of Horizontal Rules
-rw-r--r--config.toml3
-rw-r--r--templates/base.html4
2 files changed, 7 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 7b29142..2d235cc 100644
--- a/config.toml
+++ b/config.toml
@@ -43,6 +43,9 @@ 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
#copyright_end_year = 2020 # optional, recommend leaving unset, zola build will set this to current year by default
+
+headhr = false # show or hide horizontal rule below header
+foothr = true # show or hide horizontal rule above footer
menu = [
{url = "/", name = "Home", slash = true},
{url = "/about/", name = "About", slash = true},
diff --git a/templates/base.html b/templates/base.html
index f056486..a7533a5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -62,7 +62,9 @@
<div>{{ config.description }}</div>
{%- endif %}
{%- endif %}
+ {%- if config.extra.headhr %}
<hr>
+ {%- endif %}
</header>
{%- endblock header %}
<main>
@@ -71,7 +73,9 @@
</main>
{%- block footer %}
<footer>
+ {%- if config.extra.foothr %}
<hr>
+ {%- endif %}
<center>
<p>
{{- social_macros::social_links(social_config=config.extra.social) }}