diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 19823cf..4d87b57 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -2,17 +2,33 @@ + {{ title or metadata.title }} + + + {# We only bother with preloading the variable font here because chances are + that if a browser doesn't support variable fonts it won't support + preloading either: + https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/preload#browser_compatibility + #} + + {% for name in (extraStylesheets or []) %} + + {% endfor %} + {% block headStart %}{% endblock %} + - {{ title or metadata.title }} - - - {% block extraHead %}{% endblock %} + + {% for name in (extraStylesheets or []) %} + + {% endfor %} + + {% block headEnd %}{% endblock %}
- {{ content | safe }} + {% block content %} + {{ content | safe }} + {% endblock %}