From 490f46fde9a3c678e574fb0a4d1748a90fcba44a Mon Sep 17 00:00:00 2001 From: mat ess Date: Fri, 25 Nov 2022 17:58:48 -0500 Subject: [PATCH] Preload fewer fonts, tweak markup --- templates/index.html | 4 ++-- templates/partials/header.html | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/templates/index.html b/templates/index.html index 4559c74..d6bf24d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,11 +4,11 @@ also on {%- for me in config.extra.me_links -%} {%- if loop.last -%} - and + and {%- endif %} {{ me.name }} {%- if not loop.last -%},{%- else %} {%- endif -%} -{% endfor -%} +{% endfor %} {% endblock main_content %} \ No newline at end of file diff --git a/templates/partials/header.html b/templates/partials/header.html index 86b8ffa..a500673 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -10,11 +10,9 @@ {%- endif -%} {% for font in config.extra.fonts -%} - {% for style in ["Bold", "BoldItalic", "Italic", "Regular"] -%} - {% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %} + {% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-Regular.woff2' %} {%- endfor %} - {%- endfor %} {# Atom #} {%- block rss -%} @@ -51,10 +49,10 @@ {%- endif -%} {#- Twitter #} - {%- if hero -%} + {%- endif %} - \ No newline at end of file +