publication: Allow date format to be changed (#336)

* Add `[params.publications]` section to `config.toml`
This commit is contained in:
George Cushen committed 2017-10-22 15:12:11 +01:00
1 parent 76de60ec59
commit 229629b772
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -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?
+1 -1
View File
@@ -64,7 +64,7 @@
<div class="row">
<div class="col-xs-12 col-sm-3 pub-row-heading">{{ i18n "date" }}</div>
<div class="col-xs-12 col-sm-9" itemprop="datePublished">
{{ .Date.Format "January, 2006" }}
{{ .Date.Format ($.Site.Params.publications.date_format | default "January, 2006") }}
</div>
</div>
</div>