mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
BREAKING: Only show date in lists if showdate
is set to true in _index.md
This commit is contained in:
parent
58fbdafc10
commit
28a10e1dc4
@ -8,9 +8,10 @@
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ $showDate := .Params.showdate }}
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
{{ if .Date }}
|
||||
{{ if $showDate }}
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</time>
|
||||
|
Loading…
Reference in New Issue
Block a user