From 50eeef1f2b8ef0391c00c3ab9ccd6997668ba3a6 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 28 Nov 2021 20:39:21 +0000 Subject: [PATCH] feat: workaround Hugo bug with localized dates Hugo 0.87 added support for localized dates yet Hugo localizes dates on non-English sites to a different language, English. Close #2539 --- wowchemy/layouts/partials/book_layout.html | 2 +- wowchemy/layouts/partials/functions/get_event_dates.html | 8 ++++---- wowchemy/layouts/partials/page_metadata.html | 4 ++-- wowchemy/layouts/partials/widgets/accomplishments.html | 4 ++-- wowchemy/layouts/partials/widgets/experience.html | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wowchemy/layouts/partials/book_layout.html b/wowchemy/layouts/partials/book_layout.html index fa3333da..fa60c6fc 100644 --- a/wowchemy/layouts/partials/book_layout.html +++ b/wowchemy/layouts/partials/book_layout.html @@ -51,7 +51,7 @@ diff --git a/wowchemy/layouts/partials/widgets/experience.html b/wowchemy/layouts/partials/widgets/experience.html index 45276ec0..b495af6e 100644 --- a/wowchemy/layouts/partials/widgets/experience.html +++ b/wowchemy/layouts/partials/widgets/experience.html @@ -48,9 +48,9 @@ {{- with .company_url}}{{end}}{{.company | markdownify | emojify}}{{with .company_url}}{{end -}}
- {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} – + {{ (time .date_start) | time.Format ($page.Params.date_format | default "January 2006") }} – {{ if .date_end}} - {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }} + {{ (time .date_end) | time.Format ($page.Params.date_format | default "January 2006") }} {{else}} {{ i18n "present" | default "Present" }} {{end}}