From 5a05141743f5ad0ebdd3d67eee8230455114bfd4 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Tue, 8 Nov 2022 09:08:28 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Ensure=20`colorScheme`=20string?= =?UTF-8?q?=20is=20lowercase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #347 --- CHANGELOG.md | 1 + layouts/partials/head.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4948078..8dcd16ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Appearance switcher title doesn't update when switching appearance ([#235](https://github.com/jpanther/congo/issues/235)) - Article updated date logic doesn't consider formatted date values ([#259](https://github.com/jpanther/congo/issues/259)) - Order of articles on list pages would not follow Hugo conventions when grouped by year ([#313](https://github.com/jpanther/congo/issues/313)) +- Providing a `colorScheme` value containing uppercase characters would break some deployments ([#347](https://github.com/jpanther/congo/issues/347)) ## [2.3.1] - 2022-07-30 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d36cda4f..871c63b5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,7 +32,7 @@ {{ end -}} {{/* Asset bundles */}} {{ $assets := newScratch }} - {{ $cssScheme := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }} + {{ $cssScheme := resources.Get (printf "css/schemes/%s.css" (lower .Site.Params.colorScheme | default "congo")) }} {{ if not $cssScheme }} {{ $cssScheme = resources.Get "css/schemes/congo.css" }} {{ end }}