From 5c9438e952e8004336b761f572da2a1814dc2141 Mon Sep 17 00:00:00 2001 From: Antoine Soetewey Date: Mon, 27 Dec 2021 12:06:09 +0100 Subject: [PATCH] Update date.html When following this [workflow](https://bookdown.org/yihui/blogdown/workflow.html), there is an error when serving the site : ``` Launching the server via the command: /Users/antoinesoetewey/Library/Application Support/Hugo/0.82.0/hugo server --bind 127.0.0.1 -p 4321 --themesDir themes -t congo -D -F --navigateToChanged Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:11:11: executing "main" at : error calling partial: execute of template failed: template: partials/article-meta.html:16:36: executing "partials/article-meta.html" at : error calling partial: "/Users/antoinesoetewey/Documents/GitHub/elsaetantoine/themes/congo/layouts/partials/meta/date.html:2:24": execute of template failed: template: partials/meta/date.html:2:24: executing "partials/meta/date.html" at <.Site.Params.article.dateFormat>: invalid value; expected string ``` By adding these parentheses, the site is served without any error. Regards, Antoine --- layouts/partials/meta/date.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/meta/date.html b/layouts/partials/meta/date.html index 9d75ac62..92c2675b 100644 --- a/layouts/partials/meta/date.html +++ b/layouts/partials/meta/date.html @@ -1,10 +1,10 @@ {{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}  (Updated:  ) {{ end }}