From a50277a49583a47000e5aff8ac207acce219144f Mon Sep 17 00:00:00 2001 From: rmaguiar Date: Tue, 21 Jul 2020 22:07:16 -0300 Subject: Add checking to font preloading --- layouts/partials/head.html | 6 ++++-- layouts/partials/search-form.html | 2 +- layouts/shortcodes/contact-form.html | 16 ++++++++-------- layouts/shortcodes/social.html | 4 ++-- 4 files changed, 15 insertions(+), 13 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2d334f8..d6b53cc 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -375,8 +375,10 @@ -{{ range (readDir "/public/fonts") }} - +{{ with (readDir "/public/fonts") }} + {{ range . }} + + {{ end }} {{ end }} diff --git a/layouts/partials/search-form.html b/layouts/partials/search-form.html index 8f3813d..84d67e6 100644 --- a/layouts/partials/search-form.html +++ b/layouts/partials/search-form.html @@ -13,7 +13,7 @@ {{ else }}
{{ end }} - +

diff --git a/layouts/shortcodes/contact-form.html b/layouts/shortcodes/contact-form.html index 8dd4401..43f165e 100644 --- a/layouts/shortcodes/contact-form.html +++ b/layouts/shortcodes/contact-form.html @@ -6,16 +6,16 @@
-