diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-16 17:02:46 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-16 17:02:46 -0400 |
| commit | 4763716990130392a9cd03242804f6e405d5add6 (patch) | |
| tree | 9aa08bce84b761e4c60b297f79233884cd4e17a4 /layouts/_partials/head.html | |
| parent | 18d0eb02ee0e9f199ff755d58dea7d523838f3c7 (diff) | |
| download | aoidh-4763716990130392a9cd03242804f6e405d5add6.zip | |
et-book font
Diffstat (limited to 'layouts/_partials/head.html')
| -rw-r--r-- | layouts/_partials/head.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 2720637..463dabb 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -1,6 +1,15 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> -{{- with resources.Get "aoidh.css" | minify }} - <link rel="stylesheet" href="{{ .RelPermalink }}"> -{{- end }} + +{{ range slice "aoidh.css" "fonts/et-book/et-book.css" }} + {{- with resources.Get . }}<link rel="stylesheet" href="{{ .RelPermalink }}">{{ end }} +{{ end }} + +{{- range $style := slice "roman-line-figures" "display-italic-old-style-figures" "bold-line-figures" }} + {{- range $fmt := slice "eot" "woff" "ttf" "svg" }} + {{- $font := printf "fonts/et-book/et-book/et-book-%s/et-book-%s.%s" $style $style $fmt }} + {{- with resources.Get $font }}{{ .Publish }} + {{- else }}{{ errorf "font not found: %s" $font }}{{ end }} + {{- end -}} +{{- end -}} |