From 152096f8ba4103aa1b0ed5c069104acd4402fe73 Mon Sep 17 00:00:00 2001 From: David Emerson Date: Wed, 18 Mar 2026 15:45:12 -0400 Subject: [PATCH] =?UTF-8?q?Upgrade=20Hugo=200.69.0=20=E2=86=92=200.157.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Breaking changes fixed: - config.toml: Remove deprecated pygmentsCodefences settings (superseded by goldmark) and [markup.blackFriday] section (renderer removed) - netlify.toml: Pin Hugo 0.157.0 in all three deploy contexts - baseof.html: Replace .Scratch / isset (removed ~0.120) with simple variable assignment for page title logic - list.html, press/list.html, presentations/list.html: .Data.Pages → .Pages - Delete 3 unused partials (get-involved-action.html, get-involved.html, docs/sidebar.html) that reference removed APIs Local build: zero errors, zero warnings, 231 pages (210 EN / 14 ES / 7 ZH). Smoke tested all major page types (homepage, blog, press, presentations, volunteer, donate, stats, map, i18n, 404) — all return 200. Title logic verified: homepage → "NYC Mesh", subpages → "Page - NYC Mesh". --- config.toml | 4 --- layouts/_default/baseof.html | 13 +++----- layouts/_default/list.html | 2 +- layouts/partials/docs/sidebar.html | 31 ------------------- .../partials/home/get-involved-action.html | 9 ------ layouts/partials/home/get-involved.html | 0 layouts/presentations/list.html | 2 +- layouts/press/list.html | 2 +- netlify.toml | 6 ++-- 9 files changed, 11 insertions(+), 58 deletions(-) delete mode 100644 layouts/partials/docs/sidebar.html delete mode 100644 layouts/partials/home/get-involved-action.html delete mode 100644 layouts/partials/home/get-involved.html diff --git a/config.toml b/config.toml index de588c3d..4017f4c0 100644 --- a/config.toml +++ b/config.toml @@ -1,8 +1,6 @@ title = "NYC Mesh" baseURL = "https://www.nycmesh.net/" defaultContentLanguage = "en" -pygmentsCodefences = true -pygmentsCodefencesGuessSyntax = true summaryLength = 10 [params] @@ -16,8 +14,6 @@ summaryLength = 10 [languages.zh] [markup] - [markup.blackFriday] - hrefTargetBlank = true [markup.tableOfContents] endLevel = 3 ordered = false diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6443fc4d..30ae39da 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,12 +1,9 @@ -{{ if isset .Params "title" }} - {{ .Scratch.Set "title" .Title }} +{{ $title := .Site.Title }} +{{ with .Title }} + {{ if not $.IsHome }} + {{ $title = printf "%s - %s" . $.Site.Title }} + {{ end }} {{ end }} -{{ if .IsHome }} -{{ else }} - {{ .Scratch.Add "title" " - " }} - {{ .Scratch.Add "title" .Site.Title }} -{{ end }} -{{ $title := .Scratch.Get "title" }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b3f242a3..7f5bca18 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@

{{ .Title }}