diff options
Diffstat (limited to 'template.go')
-rw-r--r-- | template.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/template.go b/template.go index ef02ce0..cb37aff 100644 --- a/template.go +++ b/template.go | |||
@@ -6,9 +6,15 @@ var tpltext = `<!doctype html> | |||
6 | <meta charset="utf-8"> | 6 | <meta charset="utf-8"> |
7 | <meta name="viewport" content="width=device-width, initial-scale=1" /> | 7 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
8 | <title>{{ .Title }}</title> | 8 | <title>{{ .Title }}</title> |
9 | <link rel="preload" href="/iosevka-term-ss03-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 9 | <link rel="stylesheet" href="/style-{{ .AssetHashList.Style }}.css" /> |
10 | <style> | 10 | <style> |
11 | {{ .Style | safeCss }} | 11 | @font-face { |
12 | font-family: 'Iosevka Term SS03'; | ||
13 | font-style: normal; | ||
14 | font-weight: normal; | ||
15 | src: url('/iosevka-term-ss03-regular-{{ .AssetHashList.FontW2 }}.woff2') format('woff2'), | ||
16 | url('/iosevka-term-ss03-regular-{{ .AssetHashList.FontW }}.woff') format('woff'); | ||
17 | } | ||
12 | </style> | 18 | </style> |
13 | </head> | 19 | </head> |
14 | <body class="{{ if not .Lines }}is-plain{{ end }}"> | 20 | <body class="{{ if not .Lines }}is-plain{{ end }}"> |
@@ -91,8 +97,6 @@ var tpltext = `<!doctype html> | |||
91 | </div> | 97 | </div> |
92 | </div> | 98 | </div> |
93 | </aside> | 99 | </aside> |
94 | <script type="text/javascript"> | 100 | <script src="/main-{{ .AssetHashList.JS }}.js"></script> |
95 | {{ .Script | safeJs }} | ||
96 | </script> | ||
97 | </body> | 101 | </body> |
98 | </html>` | 102 | </html>` |