aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base/base.gohtml11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml
index 785bbaf..716b1ca 100644
--- a/templates/base/base.gohtml
+++ b/templates/base/base.gohtml
@@ -6,6 +6,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="{{getStaticPath "logo.png"}}" type="image/png" />
<title>{{ .Title }}</title>
+ <style>
+ {{ if ne .Data.Font "" }}
+ @font-face {
+ font-family: "custom";
+ src: url("{{ getStaticPath .Data.Font }}");
+ }
+ body {
+ --fonts: "custom";
+ }
+ {{ end }}
+ </style>
<link rel="stylesheet" href="{{getAssetPath "styles.css"}}" />
{{template "opengraph-base" .SEO}}
{{ if .Data.IsCustomPage }}