This commit is contained in:
Niklas Buschmann
2020-11-25 20:51:00 +01:00
parent aa7b9056cf
commit 80ab8e36c3
9 changed files with 5 additions and 56602 deletions

View File

@@ -6,29 +6,12 @@
{{ $Pages = where site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ end }}
{{ if .Site.Params.show_excerpts }}
{{- range $Pages }}
<article>
<header>
<h1>{{ .Title }}</h1>
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 02, 2006" }}</time>{{ end }}
</header>
{{ .Summary }}
{{- if .Truncated }}
<div class="more"><a href="{{ .RelPermalink }}">read more</a></div>
{{- end }}
</article>
{{- end }}
{{ else }}
<article>
<header><h1>{{ .Title | default "Posts" | humanize }}</h1></header>
<ul class="archive">
<ul>
{{- range $Pages }}
<li>
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
<li style="font-size: 1.1em;">
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" style="display: inline-block; min-width: 10ch; margin: 0 .2em;">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{- end }}
@@ -37,5 +20,3 @@
</article>
{{ end }}
{{ end }}