From 4763716990130392a9cd03242804f6e405d5add6 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 16 Mar 2026 17:02:46 -0400 Subject: et-book font --- layouts/_partials/head.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'layouts') 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 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} -{{- with resources.Get "aoidh.css" | minify }} - -{{- end }} + +{{ range slice "aoidh.css" "fonts/et-book/et-book.css" }} + {{- with resources.Get . }}{{ 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 -}} -- cgit v1.2.3