mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
publication: Allow date format to be changed (#336)
* Add `[params.publications]` section to `config.toml`
This commit is contained in:
1 parent
76de60ec59
commit
229629b772
2 files changed
+7
-1
No files matched your search
@@ -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?
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user