From 9d39fb8af51c205511f116bb308ee64835279927 Mon Sep 17 00:00:00 2001
From: Jieiku
Date: Sat, 29 Jun 2024 15:08:35 -0700
Subject: Page Spacing Improvements
---
config.toml | 12 ++++++------
sass/abridge.scss | 1 +
templates/base.html | 27 +++++++++++++++------------
templates/macros/macros.html | 2 +-
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 = '
Powered by Zola & Abridge
'
#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 = ' does not pass validation, use:
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 @@
{%- include "partials/social.html" %}
+
+
+ {%- if config.extra.menu_footer %}
+
+ {%- 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 %}
+ {% if lang != config.default_language %} {{ macros::translate(key=i.name|safe, default=i.name|safe, i18n=i18n) }} {% else %} {{ i.name | safe }} {% endif %}
+ {%- endfor %}
+
+ {%- 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 %}
-
- {%- 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 %}
-
- {%- endfor %}
-
- {%- 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 %}
-
+
{%- 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 #}
-
+
{%- if config.generate_feeds and config.extra.feed -%}
{%- for feed in config.feed_filenames -%}
--
cgit v1.3.1