From 229629b77204a6abccf15813df376b9a0d71c970 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 22 Oct 2017 15:12:11 +0100 Subject: [PATCH] publication: Allow date format to be changed (#336) * Add `[params.publications]` section to `config.toml` --- exampleSite/config.toml | 6 ++++++ layouts/publication/single.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index da0131b2..b007867d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -141,6 +141,12 @@ defaultContentLanguageInSubdir = false 'Book chapter' # 6 ] + # Configuration of publication pages. + [params.publications] + # Date format (refer to Go's date format: http://flippinggodateformat.com ) + # Examples: "Mon, Jan 2, 2006" or "2006-01-02" + date_format = "January, 2006" + # Configuration of project pages. [params.projects] # List publications and talks related to the project? diff --git a/layouts/publication/single.html b/layouts/publication/single.html index 8dffc9e6..ec12a2e9 100644 --- a/layouts/publication/single.html +++ b/layouts/publication/single.html @@ -64,7 +64,7 @@
{{ i18n "date" }}