- powered by zola + apollo
+ powered by zola + apollo
and
nix.
@@ -13,10 +12,9 @@
© 2022 mat ess.
-
+
\ No newline at end of file
diff --git a/templates/partials/header.html b/templates/partials/header.html
index afdaf07..fa936e3 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -3,74 +3,58 @@
-
- {% set current_path = current_path | default(value="/") %}
-
+ {%- set current_path = current_path | default(value="/") -%}
{# Favicon #}
- {% if config.extra.favicon %}
- {% set favicon_ext = config.extra.favicon | split(pat=".") | last %}
+ {%- if config.extra.favicon -%}
+ {%- set favicon_ext = config.extra.favicon | split(pat=".") | last -%}
- {% endif %}
-
- {% for font in config.extra.fonts %}
- {% for style in ["Bold", "BoldItalic", "Italic", "Regular"] %}
+ {%- endif -%}
+ {% for font in config.extra.fonts -%}
+ {% for style in ["Bold", "BoldItalic", "Italic", "Regular"] -%}
{% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %}
-
- {% endfor %}
- {% endfor %}
+
+ {%- endfor %}
+ {%- endfor %}
-
{# RSS #}
- {% block rss %}
-
- {% endblock %}
-
+ {%- block rss -%}
+
+ {%- endblock -%}
{# Theme #}
-
-
-
-
-
- {% if config.extra.stylesheets %}
- {% for stylesheet in config.extra.stylesheets %}
+
+
+
+ {%- if config.extra.stylesheets -%}
+ {%- for stylesheet in config.extra.stylesheets -%}
- {% endfor %}
- {% endif %}
-
- {% if current_path == "/" %}
- {% set current_title = config.title | default(value="home") %}
- {% set current_description = "the personal site of mat ess" %}
- {% set hero = false %}
- {% else %}
- {% set current_title = page.title | default(value=config.title) | default(value="post") %}
- {% set current_description = page.description | default(value="from the personal site of mat ess") %}
- {% set hero = page.extra.hero | default(value=false) %}
- {% endif %}
-
+ {%- endfor -%}
+ {%- endif -%}
+ {%- if current_path == "/" -%}
+ {%- set current_title = config.title | default(value="home") -%}
+ {%- set current_description = "the personal site of mat ess" -%}
+ {%- set hero = false -%}
+ {%- else -%}
+ {%- set current_title = page.title | default(value=config.title) | default(value="post") -%}
+ {%- set current_description = page.description | default(value="from the personal site of mat ess") -%}
+ {%- set hero = page.extra.hero | default(value=false) -%}
+ {%- endif -%}
{# Meta links #}
{{ current_title }}
-
- {# Open Graph / Facebook #}
+ {#- Open Graph / Facebook #}
- {% if hero %}
+ {%- if hero -%}
- {% endif %}
-
- {# Twitter #}
+ {%- endif -%}
+ {#- Twitter #}
- {% if hero %}
+ {%- if hero -%}
- {% endif %}
+ {%- endif %}
\ No newline at end of file
diff --git a/templates/partials/nav.html b/templates/partials/nav.html
index f514ee5..8e986a2 100644
--- a/templates/partials/nav.html
+++ b/templates/partials/nav.html
@@ -1,11 +1,12 @@
-