From 699337c32e0d5d372f50722e03bdf3611692b56a Mon Sep 17 00:00:00 2001 From: mat ess Date: Thu, 20 Oct 2022 19:16:13 -0400 Subject: [PATCH] Use relative font path --- netlify.toml | 1 - templates/partials/header.html | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index ace9ac4..610c40d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -51,7 +51,6 @@ for = "/*" [headers.values] - Foo = "Bar" Permissions-Policy = "interest-cohort=()" Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload" X-Content-Type-Options = "nosniff" diff --git a/templates/partials/header.html b/templates/partials/header.html index 731bd45..0aefba6 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -14,8 +14,8 @@ {% 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 ~ '-' ~ style ~ '.woff2' %} + {% endfor %} {% endfor %}