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:
parent
0ec23802f4
commit
a8cdad69c5
1 changed files with 0 additions and 21 deletions
|
@ -1,26 +1,5 @@
|
|||
{{- define "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 -}}
|
||||
<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>
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue