Update to check if date is set in list and index.html
This commit is contained in:
parent
1610962731
commit
0ab537e2ef
@ -20,9 +20,11 @@
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
<div class="post-meta">
|
||||
{{ with .Date }}
|
||||
<span class="post-date">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
{{ .Format "2006-01-02" }}
|
||||
</span>
|
||||
{{end}}
|
||||
{{ with .Params.Author }}
|
||||
<span class="post-author">:: {{ . }}</span>
|
||||
{{ end }}
|
||||
|
@ -11,9 +11,11 @@
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
<div class="post-meta">
|
||||
{{ with .Date }}
|
||||
<span class="post-date">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
{{ .Format "2006-01-02" }}
|
||||
</span>
|
||||
{{end}}
|
||||
{{ with .Params.Author }}
|
||||
<span class="post-author">:: {{ . }}</span>
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user