From fcb640727fb3eb08314d307019d3d844b6ffa17e Mon Sep 17 00:00:00 2001 From: Aaron Qian Date: Sun, 13 Nov 2022 21:04:22 -0800 Subject: [PATCH] more bug fixes --- layouts/partials/helpers/country-code.html | 2 +- layouts/partials/misc/support.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/helpers/country-code.html b/layouts/partials/helpers/country-code.html index 925d70e..afb006e 100644 --- a/layouts/partials/helpers/country-code.html +++ b/layouts/partials/helpers/country-code.html @@ -14,7 +14,7 @@ {{/* if the user specify a country code for a language via "params.flagOverwrites" field, then use it. */}} -{{ range site.Params.flagOverwrites }} +{{ range site.Params.features.flags.flagOverwrites }} {{ if eq $languageCode .languageCode }} {{ $countryCode = .countryCode }} {{ end }} diff --git a/layouts/partials/misc/support.html b/layouts/partials/misc/support.html index c3d5585..53a3094 100644 --- a/layouts/partials/misc/support.html +++ b/layouts/partials/misc/support.html @@ -1,5 +1,6 @@ {{ with site.Params.features.support }} - {{ if .enabled }} + {{ if .enable }} + {{ with .services }} {{ with .kofi }}