1
0
Fork 0
This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
kekskurse.de-old/themes/archie/layouts/index.html
2021-03-15 18:48:51 +01:00

81 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="content">
{{ partial "head.html" . }}
<main class="list">
<div class="site-description">
{{- if isset .Site.Params "subtitle" -}}
<p>{{ .Site.Params.Subtitle | markdownify }}</p>
{{- end -}}
</div>
<img src="/img/general/ssp8_s.jpg" style="max-width:100%;">
<h1>Blog</h1>
<ul class="posts">
{{ $pages := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.startpage" "==" true }}
{{ range first 5 $pages }}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a>
<span class="meta">
{{ dateFormat "Jan 2, 2006" .Date }} {{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}
</span>
</li>
{{- end -}}
{{- end -}}
</ul>
<h1>Bilder</h1>
<ul class="posts">
{{ $pages2 := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.gallery" "!=" nil }}
{{ range first 5 $pages2 }}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a>
<span class="meta">
{{ dateFormat "Jan 2, 2006" .Date }} {{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}
</span>
</li>
{{- end -}}
</ul>
<h1>Software</h1>
<ul class="posts">
<li class="post"><a href="https://github.com/kekskurse/go-mail-admin">go-mail-admin</a></li>
</ul>
<!--<h1>Blog</h1>
{{ $pages := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.startpage" "==" true }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<section class="list-item">
<h2 class="title"><a href="{{ .RelPermalink }}">{{.Title}}</a></h2>
<time>{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</time>
<br><div class="description">
{{ if isset .Params "description" }}
{{ .Description }}
{{ else }}
{{ .Summary }}&hellip;
{{ end }}
</div>
<a href="{{ .RelPermalink }}">Read more ⟶</a>
</section>
{{ end }}!-->
{{ template "partials/paginator.html" . }}
</main>
{{ partial "footer.html" . }}
</div>
</body>
</html>