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

github.com/themefisher/bigspring-hugo-startup-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomratpro <abdulmonnafsomrat@gmail.com>2021-03-23 06:46:16 +0300
committersomratpro <abdulmonnafsomrat@gmail.com>2021-03-23 06:46:16 +0300
commitba9fdd1c26c109d2b2c460d6fa8abcbe994bdfe4 (patch)
tree7dc8476d7796329058f20bb6faae778f7904296e /layouts
parentec67b2b153c3f87b0981d957cba5c33bce801439 (diff)
added fallback font
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/script.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/script.html b/layouts/partials/script.html
index 32a8dac..2f9d0d9 100644
--- a/layouts/partials/script.html
+++ b/layouts/partials/script.html
@@ -6,7 +6,7 @@
WebFont.load({
google: {
api: 'https://fonts.googleapis.com/css2',
- families: ['{{$pf}}{{if not $sf}}&display=swap{{end}}'{{with $sf}},'{{.}}&display=swap'{{end}}],
+ families: ['{{$pf | default `Lato:wght@400`}}{{if not $sf}}&display=swap{{end}}'{{with $sf}},'{{.}}&display=swap'{{end}}],
version: 2
},
active: () => {