2020-04-08 20:44:29 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2020-04-22 12:14:28 +02:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
<body>
|
|
|
|
<div class="content">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
|
2024-08-25 11:30:44 +02:00
|
|
|
<h1 class="site-title"> {{ .Site.Params.Name }}</h1>
|
|
|
|
<h1 class="site-about"> {{ .Site.Params.About }}</h1>
|
|
|
|
|
2024-09-16 21:55:27 +02:00
|
|
|
<p> 🎵 Probably listening to
|
|
|
|
<a href="{{ .Site.Params.ListeningToUrl }}" target="_blank">
|
|
|
|
{{ .Site.Params.ListeningToTitle }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
2024-08-25 11:30:44 +02:00
|
|
|
<h1 class="site-param">My posts</h1>
|
2020-04-08 20:44:29 +02:00
|
|
|
<main class="list">
|
2020-04-22 12:14:28 +02:00
|
|
|
<div class="site-description">
|
|
|
|
{{- if isset .Site.Params "subtitle" -}}
|
2024-07-27 08:15:56 +02:00
|
|
|
<p>{{ .Site.Params.Subtitle | .Page.RenderString }}</p>
|
2020-04-22 12:14:28 +02:00
|
|
|
{{- end -}}
|
|
|
|
</div>
|
2024-08-25 11:30:44 +02:00
|
|
|
{{ $pages := (where .Site.RegularPages "Type" "post" | first 5) }}
|
2020-04-08 20:44:29 +02:00
|
|
|
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
|
|
|
|
{{ range $paginator.Pages }}
|
|
|
|
<section class="list-item">
|
|
|
|
<h1 class="title"><a href="{{ .RelPermalink }}">{{.Title}}</a></h1>
|
2024-08-05 20:10:42 +02:00
|
|
|
<time>{{ dateFormat ":date_medium" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
|
2022-11-27 12:59:33 +01:00
|
|
|
<br>{{ template "partials/pagedescription.html" . }}
|
2024-08-25 11:30:44 +02:00
|
|
|
<a class="readmore" href="{{ .RelPermalink }}">Read more</a>
|
2020-04-08 20:44:29 +02:00
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
{{ template "partials/paginator.html" . }}
|
|
|
|
</main>
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</div>
|
|
|
|
|
2020-04-22 12:14:28 +02:00
|
|
|
</body>
|
|
|
|
</html>
|