diff --git a/modules/blox/layouts/events/page.html b/modules/blox/layouts/events/page.html index c8984e5f..d2975241 100644 --- a/modules/blox/layouts/events/page.html +++ b/modules/blox/layouts/events/page.html @@ -59,7 +59,7 @@ {{ $display_date := .Params.event_start | default .Date }}
- {{- if $display_date | and (not .Params.hide_date) -}} + {{- if $display_date | and (.Params.show_date | default true) -}} {{- (time $display_date) | time.Format (site.Params.hugoblox.locale.date_format | default ":date_long") -}} {{- if .Params.authors }}·{{ end -}} {{- end -}} diff --git a/modules/blox/layouts/single.html b/modules/blox/layouts/single.html index 8016f4b3..ad1bbb8c 100644 --- a/modules/blox/layouts/single.html +++ b/modules/blox/layouts/single.html @@ -68,7 +68,7 @@ {{ $display_date := .Params.event_start | default .Date }}
- {{- if $display_date | and (not .Params.hide_date) -}} + {{- if $display_date | and (.Params.show_date | default true) -}} {{- (time $display_date) | time.Format (site.Params.hugoblox.locale.date_format | default ":date_long") -}} {{- if .Params.authors }}·{{ end -}} {{- end -}} diff --git a/templates/data-science-blog/config/_default/hugo.yaml b/templates/data-science-blog/config/_default/hugo.yaml index 87214575..47ef43d0 100644 --- a/templates/data-science-blog/config/_default/hugo.yaml +++ b/templates/data-science-blog/config/_default/hugo.yaml @@ -18,7 +18,7 @@ cascade: kind: page pager: true editable: true - hide_date: false + show_date: true show_date_updated: true reading_time: true commentable: true diff --git a/templates/data-science-blog/content/uses.md b/templates/data-science-blog/content/uses.md index 136f31ed..7b2b8a7d 100644 --- a/templates/data-science-blog/content/uses.md +++ b/templates/data-science-blog/content/uses.md @@ -1,7 +1,7 @@ --- title: Uses date: 2023-10-24 -hide_date: true +show_date: false reading_time: false --- diff --git a/templates/documentation/config/_default/hugo.yaml b/templates/documentation/config/_default/hugo.yaml index 787de313..f6a1b581 100644 --- a/templates/documentation/config/_default/hugo.yaml +++ b/templates/documentation/config/_default/hugo.yaml @@ -27,7 +27,7 @@ cascade: kind: page pager: true editable: true - hide_date: false + show_date: true show_date_updated: true reading_time: true commentable: true diff --git a/templates/startup-landing-page/config/_default/hugo.yaml b/templates/startup-landing-page/config/_default/hugo.yaml index f96074e9..c3cb1481 100644 --- a/templates/startup-landing-page/config/_default/hugo.yaml +++ b/templates/startup-landing-page/config/_default/hugo.yaml @@ -18,7 +18,7 @@ cascade: kind: page pager: true editable: true - hide_date: false + show_date: true show_date_updated: true reading_time: true commentable: true