From b0bf3ccca1a431feb7b788b2ec1210aa903bed97 Mon Sep 17 00:00:00 2001 From: Lars Kruse <devel@sumpfralle.de> Date: Fri, 01 Oct 2021 17:45:22 +0000 Subject: [PATCH] Allow override of date format (#291) --- README.md | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 9f88248..b8da506 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,18 @@ ``` +### Localize date format + +Dates of blog posts and single pages are rendered with the default date format commonly used in the USA and Canada. It is possible to specify a different format. + +``` +[params] + date_format = "2. January 2006" +``` + +See hugo's documentation of the [`dateFormat` function](https://gohugo.io/functions/dateformat/) for more details. + + ### Nearly finished In order to see your site in action, run Hugo's built-in local server. -- Gitblit v1.10.0