Priority preload headshot

This commit is contained in:
blaine-t 2024-09-06 01:35:47 -05:00
parent 37b11b7605
commit f4f4d66ab6
No known key found for this signature in database
GPG key ID: 8D281DF6BDB25B4A

View file

@ -6,6 +6,12 @@
{# Site title #}
<title>{%- include "partials/title.html" -%}</title>
{# Headshot Preload #}
{% if section.extra.header %}
{%- set image_path = get_url(path=section.extra.header.img, trailing_slash=false) | safe -%}
<link rel="preload" as="image" href="{{ image_path }}">
{%- endif -%}
{# Favicon #}
{% if config.extra.favicon %}
<link rel="icon" type="image/png" href="{{ get_url(path=config.extra.favicon) }}"/>