From 12e229c41aae11eb13539d5cdd1ba23d9babe0c9 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Tue, 15 Apr 2025 19:09:57 +0200 Subject: [PATCH 1/2] style: restrict old-style numbers --- assets/css/base/_typography.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/css/base/_typography.scss b/assets/css/base/_typography.scss index 2df7a98..c829aa0 100644 --- a/assets/css/base/_typography.scss +++ b/assets/css/base/_typography.scss @@ -62,11 +62,13 @@ hgroup { text-wrap: balance; } -p { - text-wrap: pretty; - font-variant-numeric: oldstyle-nums; - margin-block: 1em; - margin-block: 1lh; +.article-body__content { + & p { + text-wrap: pretty; + font-variant-numeric: oldstyle-nums; + margin-block: 1em; + margin-block: 1lh; + } } section { From a9715ae9f5fce0a2e79434a4efcbec30193be663 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Tue, 15 Apr 2025 19:10:06 +0200 Subject: [PATCH 2/2] fix: CV table --- assets/js/roles-chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/roles-chart.js b/assets/js/roles-chart.js index b3d69ef..bc4de18 100644 --- a/assets/js/roles-chart.js +++ b/assets/js/roles-chart.js @@ -64,7 +64,7 @@ function drawChart() { {{- if $add_redacted -}} {{- $.Scratch.Set "parents" ( $.Scratch.Get "parents" | append "███████████████" ) -}} {{- else -}} - {{- $.Scratch.Set "parents" ( $.Scratch.Get "parents" | append ( ( partial "cv/organisation/get_top_level_ancestor.html" . ) | plainify ) ) -}} + {{- $.Scratch.Set "parents" ( $.Scratch.Get "parents" | append ( ( partial "cv/organisation/get_top_level_ancestor.html" . ) | .RenderString | plainify ) ) -}} {{- end -}} {{- else -}} {{ erroridf "missing-organisation" "Could not find organisation %q (%q)" . $.File.Path }}