Cleaned the index layout code and removed the standard page title to prevent a strange double „Vri's Cute Corner – Vri's Cute Corner“ thingie.

This commit is contained in:
Vrifox 2021-05-15 21:25:56 +02:00
parent 0ec23802f4
commit a8cdad69c5
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -1,26 +1,5 @@
{{- define "main" }} {{- define "main" }}
<main> <main>
<h1 class="title">{{ .Title }}</h1>
{{- if eq .Params.type "post" }}
<p title="{{ .Date.Format "2. January 2006, 15:04 MST" }}">{{ .Date.Format "2. January 2006" }}</p>
{{- end }}
{{ .Content -}} {{ .Content -}}
<aside>
{{- with .Params.topics }}
<ul class="topics">
{{- range . }}
<li>
<a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
</ul>
{{- end }}
{{- with .Params.tags }}
tags
{{- range . }}
<a href="{{ "tags" | relURL }}/{{ . | urlize }}">{{ . }}</a>
{{- end }}
{{- end }}
</aside>
</main> </main>
{{- end }} {{- end }}