Skip to content

Commit

Permalink
Page Spacing Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jieiku committed Jun 29, 2024
1 parent e1f0bfa commit 9d39fb8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
12 changes: 6 additions & 6 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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> &#38; <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/
Expand All @@ -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.
Expand Down
1 change: 1 addition & 0 deletions sass/abridge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
27 changes: 15 additions & 12 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,21 @@ <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%-
<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") %}
Expand All @@ -149,18 +164,6 @@ <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%-
{%- 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 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/macros/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h1>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_siz
{%- 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") -%}
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/social.html
Original file line number Diff line number Diff line change
@@ -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 -%}

Expand Down

0 comments on commit 9d39fb8

Please sign in to comment.