From 056c45ed232121a3d05a37f4c49f9cfd668c1a42 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 16 Mar 2026 17:51:05 -0400 Subject: remove webfont (too slow) --- .gitmodules | 3 --- assets/aoidh.css | 4 ++-- assets/fonts/et-book | 1 - layouts/_partials/head.html | 13 +------------ 4 files changed, 3 insertions(+), 18 deletions(-) delete mode 160000 assets/fonts/et-book diff --git a/.gitmodules b/.gitmodules index c1ea0b4..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "assets/fonts/et-book"] - path = assets/fonts/et-book - url = https://github.com/edwardtufte/et-book.git diff --git a/assets/aoidh.css b/assets/aoidh.css index cf993a5..f0609cd 100644 --- a/assets/aoidh.css +++ b/assets/aoidh.css @@ -28,7 +28,7 @@ body { } body { - font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; + font-family: "Palatino", "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; line-height: 1.3em; text-rendering: optimizeLegibility; color: #000; @@ -225,6 +225,6 @@ iframe { } code, .mono { - font-family: 'IBM Plex Mono', 'Source Code Pro', monospace; + font-family: "IBM Plex Mono", "Source Code Pro", monospace; font-size: .9em; } diff --git a/assets/fonts/et-book b/assets/fonts/et-book deleted file mode 160000 index 24d3a3b..0000000 --- a/assets/fonts/et-book +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 24d3a3bbfc880095d3df2b9e9d60d05819138e89 diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 463dabb..a5b39cd 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -1,15 +1,4 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ 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 -}} +{{ with resources.Get "aoidh.css" }}{{ end }} -- cgit v1.2.3