{% import "macros/macros.html" as post_macros %}
{% set current_path = current_path | default(value="/") %} {# Favicon #} {% 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"] %} {% set font_path = '/font/' ~ font.path ~ '/' ~ font.name ~ '-' ~ style ~ '.woff2' %} {% endfor %} {% endfor %} {# RSS #} {# Theme #} {% 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 %} {# Meta links #}