layouts: surpress date section when date is not set
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
2ccaa8cbf9
commit
83b1af5361
|
@ -4,11 +4,13 @@
|
||||||
<div class="e-content">
|
<div class="e-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ if .Date }}
|
||||||
<p>
|
<p>
|
||||||
Published on
|
Published on
|
||||||
<a class="u-url" href="{{ .Permalink }}">
|
<a class="u-url" href="{{ .Permalink }}">
|
||||||
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue