diff --git a/README.md b/README.md index a014cba..d3b062e 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,8 @@ params: cacheBustJS: true # Add a cache busting hash on script.js sidebar: true # Show a sidebar to the right submitted: false # Show author and date information for a post. + dateformat: "" # Set the date format, default to "2 January, 2006" + ``` diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 577446e..e379e58 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -1 +1 @@ -
{{ with $.Param "author" }} – {{ end -}} -{{ .Date.Format "2 January, 2006" }} +{{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}