From d615d9d89c7116d365909c5d3c129e5bdf7e59b1 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 9 Jan 2022 14:27:15 +0000 Subject: [PATCH] refactor: site locale params under params.locale BREAKING CHANGE: in params.yaml: ``` date_format: 'Jan 2, 2006' time_format: '3:04 PM' address_format: en-us ``` to ``` locale: date_format: 'Jan 2, 2006' time_format: '3:04 PM' address_format: en-us ``` --- wowchemy/config.yaml | 13 +++++++------ wowchemy/layouts/partials/book_layout.html | 2 +- .../layouts/partials/functions/get_event_dates.html | 4 ++-- wowchemy/layouts/partials/page_metadata.html | 2 +- wowchemy/layouts/slides/baseof.html | 4 +--- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/wowchemy/config.yaml b/wowchemy/config.yaml index 5f7ee66f..ce3c570e 100644 --- a/wowchemy/config.yaml +++ b/wowchemy/config.yaml @@ -46,14 +46,15 @@ module: target: i18n - source: archetypes target: archetypes -params: - theme: minimal - font: native - date_format: 'Jan 2, 2006' - time_format: '3:04 PM' - address_format: en-us security: funcs: getenv: - ^HUGO_ - ^WC_ +params: + theme: minimal + font: native + locale: + date_format: 'Jan 2, 2006' + time_format: '3:04 PM' + address_format: en-us diff --git a/wowchemy/layouts/partials/book_layout.html b/wowchemy/layouts/partials/book_layout.html index 6a14c92e..280a58bc 100644 --- a/wowchemy/layouts/partials/book_layout.html +++ b/wowchemy/layouts/partials/book_layout.html @@ -51,7 +51,7 @@