Better layout for date

This commit is contained in:
ekkie 2023-04-19 23:27:58 +02:00
parent c8c82a7629
commit a3412ea860
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>