From eb4b64671131ca622737224959062b12fc36bebb Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Tue, 15 Apr 2025 13:10:12 +0200 Subject: [PATCH 1/2] style: change `font-variant-numeric` to only body text --- assets/css/base/_typography.scss | 2 +- assets/css/components/_table.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/css/base/_typography.scss b/assets/css/base/_typography.scss index b21595d..2df7a98 100644 --- a/assets/css/base/_typography.scss +++ b/assets/css/base/_typography.scss @@ -44,7 +44,6 @@ html { color: $dark; background-color: $light; font-family: $default-font; - font-variant-numeric: oldstyle-nums slashed-zero; writing-mode: horizontal-tb; } @@ -65,6 +64,7 @@ hgroup { p { text-wrap: pretty; + font-variant-numeric: oldstyle-nums; margin-block: 1em; margin-block: 1lh; } diff --git a/assets/css/components/_table.scss b/assets/css/components/_table.scss index 083e596..58c38fd 100644 --- a/assets/css/components/_table.scss +++ b/assets/css/components/_table.scss @@ -35,7 +35,7 @@ table { & td { padding: 0.5em 1em; border: 1px solid $dark; - font-variant-numeric: lining-nums tabular-nums; + font-variant-numeric: lining-nums tabular-nums slashed-zero; } } } From bfa512eb6fff09049f6c7e717522a5e5828a0bef Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Tue, 15 Apr 2025 13:10:38 +0200 Subject: [PATCH 2/2] fix: cache page title partial --- layouts/partials/item-tile.html | 6 +++++- layouts/partials/single/main-header/item-tile.html | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/layouts/partials/item-tile.html b/layouts/partials/item-tile.html index f372f95..5215826 100644 --- a/layouts/partials/item-tile.html +++ b/layouts/partials/item-tile.html @@ -86,7 +86,11 @@ {{ end }} - {{- partial "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) -}} + {{- if .File -}} + {{- partialCached "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) .File.Filename -}} + {{- else -}} + {{- partial "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) -}} + {{- end -}}

diff --git a/layouts/partials/single/main-header/item-tile.html b/layouts/partials/single/main-header/item-tile.html index 0b70599..b7351f8 100644 --- a/layouts/partials/single/main-header/item-tile.html +++ b/layouts/partials/single/main-header/item-tile.html @@ -40,7 +40,11 @@

- {{- partialCached "text/item-title.html" ( dict "pc" .pc "sc" .sc "class" "article-header" ) .File.Filename -}} + {{- with .pc.File -}} + {{- partialCached "text/item-title.html" ( dict "pc" $.pc "sc" $.sc "class" "article-header" ) .Filename -}} + {{- else -}} + {{- partial "text/item-title.html" ( dict "pc" $.pc "sc" $.sc "class" "article-header" ) -}} + {{- end -}}
{{ with ( .pc.Resources.GetMatch .pc.Params.featured_image ) }}