ADD post list

This commit is contained in:
Hoernschen 2023-12-27 00:23:25 +01:00
parent 826abcd7ae
commit 04f1dd0327
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
4 changed files with 26 additions and 12 deletions

View file

@ -1,14 +1,19 @@
{{ define "main" }}
{{ if .Content }}
{{ if .Title }}
<!-- TODO -->
<div class="content">
{{ with .Title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}
<article>
<div class="title">
<h1>{{ .Title }}</h1>
<div class="divider"></div>
</div>
{{.Content}}
</article>
<div class="list">
{{ range .Pages }}
<a href="{{.Permalink}}"><p>{{ .Title }}</p></a>
{{ end }}
</div>
</div>
{{ else }}
<div class="header-blocker"></div>

View file

@ -9,7 +9,7 @@
<div class="content">
{{ with .Title }}
<div class="title">
<h1 class="content-title">{{ . }}</h1>
<h1>{{ . }}</h1>
<div class="divider"></div>
</div>
{{ end }}

View file

@ -3,7 +3,7 @@
{{ if .social }}
<div class="social">
{{ range .social }}
<a href="{{ .url }}"><i class="{{ if .type }} icon-{{ .type }} {{ else }} icon-link {{ end }}"></i></a>
<a href="{{ .url }}"><i class="{{ if .type }} icon-{{ .type }} {{ else }} icon-link {{ end }}"></i>{{ if .text }} {{ .text }} {{ end }}</a>
{{ end }}
</div>
{{ end }}
@ -19,5 +19,5 @@
© {{ dateFormat "2006" now }} {{ .copyright }}</a>
</p>
{{ end }}
</footer>
</footer>
{{ end }}