2022-06-21 15:50:51 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ with .Content }}
|
|
|
|
<div class="index-content">
|
|
|
|
{{ . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<div class="posts">
|
|
|
|
{{ range .Paginator.Pages }}
|
2022-10-22 13:29:33 +02:00
|
|
|
<article class="post on-list">
|
2024-08-29 12:35:46 +02:00
|
|
|
<h2 class="post-title">
|
2022-06-21 15:50:51 +02:00
|
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
2024-08-29 12:35:46 +02:00
|
|
|
</h2>
|
2022-06-21 15:50:51 +02:00
|
|
|
<div class="post-meta">
|
2023-06-10 00:27:17 +02:00
|
|
|
{{- if .Date -}}
|
2022-10-22 13:29:33 +02:00
|
|
|
<time class="post-date">
|
2024-11-19 01:09:43 -07:00
|
|
|
{{- partial "post-date" . -}}
|
2022-10-22 13:29:33 +02:00
|
|
|
</time>
|
2023-06-10 00:27:17 +02:00
|
|
|
{{- end -}}
|
|
|
|
{{- with .Params.Author -}}
|
|
|
|
<span class="post-author">{{- . -}}</span>
|
|
|
|
{{- end -}}
|
2022-06-21 15:50:51 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .Params.tags }}
|
|
|
|
<span class="post-tags">
|
|
|
|
{{ range .Params.tags }}
|
|
|
|
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}">
|
|
|
|
{{- . -}}
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ partial "cover.html" . }}
|
|
|
|
|
|
|
|
<div class="post-content">
|
|
|
|
{{ if .Params.showFullContent }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ else if .Description }}
|
2024-09-07 23:43:48 +02:00
|
|
|
<p>{{ .Description | markdownify }}</p>
|
2022-06-21 15:50:51 +02:00
|
|
|
{{ else }}
|
2023-01-21 23:20:14 +08:00
|
|
|
{{ .Summary }}
|
2022-06-21 15:50:51 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if not .Params.showFullContent }}
|
2024-09-07 23:21:07 +02:00
|
|
|
<div>
|
2025-03-10 13:47:59 +01:00
|
|
|
<a class="read-more button inline" href="{{ .RelPermalink }}">[{{ $.Site.Params.ReadMore }}]</a>
|
2022-10-22 13:29:33 +02:00
|
|
|
</div>
|
2022-06-21 15:50:51 +02:00
|
|
|
{{ end }}
|
2022-10-22 13:29:33 +02:00
|
|
|
</article>
|
2022-06-21 15:50:51 +02:00
|
|
|
{{ end }}
|
2022-10-22 13:29:33 +02:00
|
|
|
|
2022-06-21 15:50:51 +02:00
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|