From cc25fe311de8170c19b31806669686f424a57d4b Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:30:39 +0100 Subject: [PATCH] Apply title case to sections and sidebar menus --- layouts/partials/assets/section-header.html | 1 + layouts/partials/assets/sidebar.html | 5 ++++- layouts/partials/list/featured.html | 5 ++++- layouts/partials/utilities/GetSections.html | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/layouts/partials/assets/section-header.html b/layouts/partials/assets/section-header.html index ef1aeda1a..20c48d979 100644 --- a/layouts/partials/assets/section-header.html +++ b/layouts/partials/assets/section-header.html @@ -16,6 +16,7 @@ {{- $title := .title -}} {{- $description := .description -}} {{- $content := .content -}} +{{ if site.Params.main.titleCase }}{{ $title = title $title }}{{ end }} {{ with $title }}
{{ . }}
{{ end }} diff --git a/layouts/partials/assets/sidebar.html b/layouts/partials/assets/sidebar.html index d4b1e217f..4af143868 100644 --- a/layouts/partials/assets/sidebar.html +++ b/layouts/partials/assets/sidebar.html @@ -37,6 +37,9 @@