www-jmbit-de/hugo/themes/terminal/layouts/_default/list.html

57 lines
1.5 KiB
HTML
Raw Normal View History

2023-08-03 11:21:34 +02:00
{{ define "main" }}
{{ with .Content }}
<div class="index-content">
{{ . }}
</div>
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
<article class="post on-list">
<h2 class="post-title">
2023-08-03 11:21:34 +02:00
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h2>
2023-08-03 11:21:34 +02:00
<div class="post-meta">
{{- if .Date -}}
2023-08-03 11:21:34 +02:00
<time class="post-date">
{{- partial "post-date" . -}}
2023-08-03 11:21:34 +02:00
</time>
{{- end -}}
{{- with .Params.Author -}}
<span class="post-author">{{- . -}}</span>
{{- end -}}
2023-08-03 11:21:34 +02:00
</div>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
{{- . -}}
</a>&nbsp;
{{ end }}
</span>
{{ end }}
{{ partial "cover.html" . }}
<div class="post-content">
{{ if .Params.showFullContent }}
{{ .Content }}
{{ else if .Description }}
<p>{{ .Description | markdownify }}</p>
2023-08-03 11:21:34 +02:00
{{ else }}
{{ .Summary }}
{{ end }}
</div>
{{ if not .Params.showFullContent }}
<div>
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a>
2023-08-03 11:21:34 +02:00
</div>
{{ end }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}