Better layout for date
This commit is contained in:
parent
c8c82a7629
commit
a3412ea860
|
@ -13,7 +13,7 @@
|
|||
<a href="{{ .URL }}">{{.Name}}</a>
|
||||
{{- end }}
|
||||
</nav>
|
||||
<header>{{ if .PublishDate }}<h5>{{ .PublishDate.Format "02 January 2006" | lower }}</h5>{{ end }}<h1 class="fancyboi">{{ .Title }}</h1></header>
|
||||
<header><h1 class="fancyboi">{{ .Title }}</h1>{{ if .PublishDate }}<small>{{ .PublishDate.Format "02 January 2006" | lower }}</small>{{ end }}</header>
|
||||
<main>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
{{ $content := .Content }}{{ range $i, $el := .Pages }}
|
||||
{{ if or $i $content }}<hr>
|
||||
{{ end }}<article>
|
||||
{{ if .PublishDate }}<h5>{{ .PublishDate.Format "02 January 2006" | lower }}</h5>{{ end }}
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
{{ if .PublishDate }}<small>{{ .PublishDate.Format "02 January 2006" | lower }}</small>{{ end }}
|
||||
<p>{{ .Summary }}</p>
|
||||
<p>...</p>
|
||||
</article>
|
||||
|
|
Loading…
Reference in New Issue