diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 5303072..3af9687 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -90,7 +90,6 @@ theme = "hugo-blog-awesome" # When building for production it will be minified. # The file `custom.js` is loaded on each page (before body tag ends). dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used. - postDateFormat = "" # date format used to show the published date at the beginning of each post. If nothing is specified, then ":date_medium" format is used. # See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats. rssFeedDescription = "summary" # available options: 1) summary 2) full # summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary . @@ -155,7 +154,6 @@ theme = "hugo-blog-awesome" # When building for production it will be minified. # The file `custom.js` is loaded on each page (before body tag ends). dateFormat = "2 January 2006" # default date format used on various pages - postDateFormat = "" # date format used to show the published date at the beginning of each post. If nothing is specified, then ":date_medium" format is used. # See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats. rssFeedDescription = "summary" # available options: 1) summary 2) full # summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary . @@ -221,7 +219,6 @@ theme = "hugo-blog-awesome" # When building for production it will be minified. # The file `custom.js` is loaded on each page (before body tag ends). dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used. - postDateFormat = "" # date format used to show the published date at the beginning of each post. If nothing is specified, then ":date_medium" format is used. # See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats. rssFeedDescription = "summary" # available options: 1) summary 2) full # summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary . @@ -287,7 +284,6 @@ theme = "hugo-blog-awesome" # When building for production it will be minified. # The file `custom.js` is loaded on each page (before body tag ends). dateFormat = "" # date format used to show dates on various pages. If nothing is specified, then "2 Jan 2006" format is used. - postDateFormat = "" # date format used to show the published date at the beginning of each post. If nothing is specified, then ":date_medium" format is used. # See https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for available date formats. rssFeedDescription = "summary" # available options: 1) summary 2) full # summary - includes a short summary of the blog post in the RSS feed. Generated using Hugo .Summary . diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 847ec30..654596e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@

{{ .Title }}

- {{ $configDateFormat := .Site.Params.postDateFormat | default ":date_medium" }} + {{ $configDateFormat := .Site.Params.dateFormat | default ":date_medium" }} {{ with .Date }} {{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }}