aboutsummaryrefslogtreecommitdiff
path: root/templates/base
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-09-06 23:00:19 +0200
committerWilliam Hergès <william@herges.fr>2025-09-06 23:00:19 +0200
commita7148391318af094b9a92b760b98d2c6d382a898 (patch)
treeaf5d6dc92a0afcaeddd6411cb3daf863b8af7100 /templates/base
parent8ae1115ba712209cb6b974e81a3a4c4745e36c94 (diff)
fix(font): crash for custom page
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/base.gohtml5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml
index 716b1ca..666e403 100644
--- a/templates/base/base.gohtml
+++ b/templates/base/base.gohtml
@@ -7,10 +7,11 @@
<link rel="shortcut icon" href="{{getStaticPath "logo.png"}}" type="image/png" />
<title>{{ .Title }}</title>
<style>
- {{ if ne .Data.Font "" }}
+ {{ $font := getFont }}
+ {{ if ne $font "" }}
@font-face {
font-family: "custom";
- src: url("{{ getStaticPath .Data.Font }}");
+ src: url("{{ getStaticPath $font }}");
}
body {
--fonts: "custom";