diff options
| -rw-r--r-- | config.toml | 12 | ||||
| -rw-r--r-- | sass/abridge.scss | 1 | ||||
| -rw-r--r-- | templates/base.html | 27 | ||||
| -rw-r--r-- | templates/macros/macros.html | 2 | ||||
| -rw-r--r-- | templates/partials/social.html | 2 |
5 files changed, 24 insertions, 20 deletions
diff --git a/config.toml b/config.toml index 61b2ea0..b1aca70 100644 --- a/config.toml +++ b/config.toml @@ -85,10 +85,10 @@ menu = [ {url = "tags", name = "Tags", slash = true, blank = false, size="s110"}, ] menu_footer = [ - {url = "about", name = "About", slash = true, blank = false}, - {url = "contact", name = "Contact", slash = true, blank = false}, - {url = "privacy", name = "Privacy", slash = true, blank = false}, - {url = "sitemap.xml", name = "Sitemap", slash = false, blank = true}, + {url = "about", name = "About", slash = true, blank = false, size="s90"}, + {url = "contact", name = "Contact", slash = true, blank = false, size="s90"}, + {url = "privacy", name = "Privacy", slash = true, blank = false, size="s90"}, + {url = "sitemap.xml", name = "Sitemap", slash = false, blank = true, size="s90"}, ] toc = true @@ -104,7 +104,7 @@ meta_post = { position="top", size="s95", author=true, readtime=false, readstrin hide_section_dates = false # hides the date for sections that use posts.html as their template. hide_page_nextprev_titles = false # hides the next/previous titles for pages that use page.html as their template. title_size_index = "s85" -footer_size = "s90" +footer_size = "s80" # the size of the copyright and powered by text footer_credit = true #footer_credit_override = '<p class="s90">Powered by <a href="https://www.getzola.org/" target="_blank">Zola</a> & <a href="https://github.com/Jieiku/abridge/" target="_blank">Abridge</a></p>' #archive_reverse = true # Set to True to sort posts chronologically per year instead of newest first on the archive page: example.com/archive/ @@ -116,7 +116,7 @@ textlogo = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#f90" vi sitedesc = false # enables or disables the display of the site description below the logo. headhr = false # show or hide horizontal rule below header -foothr = true # show or hide horizontal rule above footer +foothr = false # show or hide horizontal rule above footer ### $CURRENT_YEAR and $SITE_TITLE can be used anywhere within the copyright, you can change their position or you can also delete them and type whatever you want instead. #copyright = false # set to false to disable the copyright. diff --git a/sass/abridge.scss b/sass/abridge.scss index e9ad2ec..0cb051b 100644 --- a/sass/abridge.scss +++ b/sass/abridge.scss @@ -1408,6 +1408,7 @@ $syntax: true !default;//syntax highlighting for code blocks .s70 {font-size: .70em} .hpad {padding: 0 var(--s1)} .rpad {padding-right: var(--s1)} + .vpad {padding: var(--s1) 0} .tpad {padding-top: var(--s1)} .b {font-weight: var(--fh)} .c {text-align: center}// <center> does not pass validation, use: <div class="c"></div> diff --git a/templates/base.html b/templates/base.html index e36b8b1..1604dbe 100644 --- a/templates/base.html +++ b/templates/base.html @@ -131,6 +131,21 @@ <div class="c"> {%- include "partials/social.html" %} + + + {%- if config.extra.menu_footer %} + <nav class="vpad"> + {%- for i in config.extra.menu_footer -%} + {%- if i.url != "sitemap.xml" %} + {%- set furl=get_url(path=i.url, lang=lang, trailing_slash=i.slash) %} + {%- else %} + {%- set furl=get_url(path=i.url, trailing_slash=i.slash) %} + {%- endif %} + <a class="rpad{%- if i.size %} {{ i.size }}{% endif %}" href="{{ furl | safe }}{%- if i.slash and uglyurls %}index.html{%- endif %}"{% if i.blank %} target="_blank"{% endif %}>{% if lang != config.default_language %} {{ macros::translate(key=i.name|safe, default=i.name|safe, i18n=i18n) }} {% else %} {{ i.name | safe }} {% endif %}</a> + {%- endfor %} + </nav> + {%- endif %} + {#- Copyright START #} {%- if config.extra.copyright | default(value=true) -%} {%- set current_year = now() | date(format="%Y") %} @@ -149,18 +164,6 @@ {%- endif -%} {#- Copyright END #} - {%- if config.extra.menu_footer %} - <nav> - {%- for i in config.extra.menu_footer -%} - {%- if i.url != "sitemap.xml" %} - {%- set furl=get_url(path=i.url, lang=lang, trailing_slash=i.slash) %} - {%- else %} - {%- set furl=get_url(path=i.url, trailing_slash=i.slash) %} - {%- endif %} - <a{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %} href="{{ furl | safe }}{%- if i.slash and uglyurls %}index.html{%- endif %}"{% if i.blank %} target="_blank"{% endif %}>{% if lang != config.default_language %} {{ macros::translate(key=i.name|safe, default=i.name|safe, i18n=i18n) }} {% else %} {{ i.name | safe }} {% endif %}</a> - {%- endfor %} - </nav> - {%- endif %} {%- if config.extra.footer_credit | default(value=true) %} {%- if config.extra.footer_credit_override %} {{ config.extra.footer_credit_override | safe }} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 0473399..9794e5d 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -226,7 +226,7 @@ {%- set end = paginator.number_pagers %} {%- endif %} {%- endif %} - <nav> + <nav class="vpad"> {%- set icon_first=config.extra.icon_first | default(value="svgs svgh angll") -%} {%- set icon_prev=config.extra.icon_prev | default(value="svgs svgh angl") -%} {%- set icon_next=config.extra.icon_next | default(value="svgs svgh angr") -%} diff --git a/templates/partials/social.html b/templates/partials/social.html index cf5d058..3c7421f 100644 --- a/templates/partials/social.html +++ b/templates/partials/social.html @@ -1,5 +1,5 @@ {#- Social Footer Icons #} - <nav><div> + <nav class="tpad"><div> {%- if config.generate_feeds and config.extra.feed -%} {%- for feed in config.feed_filenames -%} |
