Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 4 insertions, 2 deletions
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 @@
<!-- Preload fonts -->
-{{ range (readDir "/public/fonts") }}
- <link rel="preload" href="{{ printf "/fonts/%s" .Name | relURL }}" as="font" crossorigin="anonymous">
+{{ with (readDir "/public/fonts") }}
+ {{ range . }}
+ <link rel="preload" href="{{ printf "/fonts/%s" .Name | relURL }}" as="font" crossorigin="anonymous">
+ {{ end }}
{{ end }}
<!-- Should be loaded even if browser has native lazy load support -->