From d38e12c695c349bd3411cf2843c0769b4ff6c35a Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Thu, 3 Dec 2026 13:28:25 +0100 Subject: [PATCH] Forced-colours edge for form buttons, a clear error for a missing area plate, and Salvador's coordinates Co-Authored-By: Claude Opus 5.5 --- assets/css/inner.css | 2 +- assets/data/community_map_slack.csv | 2 +- layouts/partials/area_plate.html | 6 +++--- layouts/partials/clusters/rich_text.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/css/inner.css b/assets/css/inner.css index 78bb8d52b6c..674663672ae 100644 --- a/assets/css/inner.css +++ b/assets/css/inner.css @@ -76,7 +76,7 @@ html.media-dialog-gutter{scrollbar-gutter:stable} /* Forced colours drop backgrounds, so filled buttons need an edge, and the dark logo needs a light plate. */ @media (forced-colors:active){ - .head-join,.cc-window.cc-window .cc-btn,.newsletter-submit,.btn,.tower-entry,.motion-toggle{border:2px solid ButtonText!important} + .head-join,.cc-window.cc-window .cc-btn,.newsletter-submit,.gform-submit,.btn,.tower-entry,.motion-toggle{border:2px solid ButtonText!important} .media-dialog,.media-dialog-close{border:2px solid CanvasText} .brand img{background:#fff;padding:2px;border-radius:4px;forced-color-adjust:none} } diff --git a/assets/data/community_map_slack.csv b/assets/data/community_map_slack.csv index 940b683b956..a10fa10c085 100644 --- a/assets/data/community_map_slack.csv +++ b/assets/data/community_map_slack.csv @@ -7,7 +7,7 @@ Anchorage,2,61.2163129,-149.894852 Athens,22,37.98381,23.72754 Auckland,3,-36.852095,174.7631803 Baghdad,2,33.3061701,44.3872213 -Bahia,2,-12.285251,-41.9294776 +Bahia,2,-12.9714,-38.5014 Bangkok,10,13.7524938,100.4935089 Belgrade,38,44.8153318,20.4456588 Bogota,19,4.6533817,-74.0836331 diff --git a/layouts/partials/area_plate.html b/layouts/partials/area_plate.html index cba7c76b866..f4d00c1c37f 100644 --- a/layouts/partials/area_plate.html +++ b/layouts/partials/area_plate.html @@ -1,5 +1,5 @@ {{/* An area plate without its ground shadow, so the bricks centre in their door. - Context: dict "image" (name in assets/images/), "alt", optional "lazy". + Context: dict "image" (base name in assets/images/, such as "area-education", which needs a -bricks copy), "alt", optional "lazy". The -bricks copies come from scripts/area_plate_bricks.py. */}} -{{ $image := resources.Get (printf "images/%s-bricks.webp" .image) }} -
{{ .alt }}
+{{ $alt := .alt }}{{ $lazy := .lazy }}{{ $name := .image }} +{{ with resources.Get (printf "images/%s-bricks.webp" .image) }}
{{ $alt }}
{{ else }}{{ errorf "area_plate: no images/%s-bricks.webp" $name }}{{ end }} diff --git a/layouts/partials/clusters/rich_text.html b/layouts/partials/clusters/rich_text.html index c51a4c020ba..6a466503a5f 100644 --- a/layouts/partials/clusters/rich_text.html +++ b/layouts/partials/clusters/rich_text.html @@ -1,6 +1,6 @@ {{- /* Publication titles from Crossref: plain text plus , and markup, sometimes with HTML entities. Escape everything, then restore only those tags (scp as small caps). - static/js/featured-resources.js has the same rule (richText). */ -}} + static/js/featured-resources.js has the same rule for markup that is not nested (richText). */ -}} {{- $s := . | default "" | htmlUnescape | replaceRE `[\s\x{00A0}]+` " " | strings.TrimSpace | htmlEscape -}} {{- $s = replaceRE `<i>(.*?)</i>` "$1" $s -}} {{- $s = replaceRE `<em>(.*?)</em>` "$1" $s -}}