2020-01-12 07:51:51 +01:00
|
|
|
{{ define "main" }}
|
2020-05-07 21:02:59 +02:00
|
|
|
<div class="index-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2020-01-12 07:51:51 +01:00
|
|
|
|
2021-01-20 20:12:50 +01:00
|
|
|
<div class="articles h-feed">
|
2023-08-12 10:28:38 +02:00
|
|
|
<h1 class="post-title">{{ i18n .Title | markdownify }}</h1>
|
2023-07-06 16:11:45 +02:00
|
|
|
{{ $showFullContent := in .Site.Params.sectionsWithFullContentOnListPage .Section }}
|
|
|
|
{{ $pages := where .Pages "Params.hidden" "!=" true}}
|
2023-07-20 19:02:59 +02:00
|
|
|
|
|
|
|
{{ $pagesRange := $pages}}
|
|
|
|
{{ if $showFullContent }}
|
|
|
|
{{ $pagesRange = (.Paginate $pages).Pages }}
|
|
|
|
{{ end}}
|
|
|
|
|
|
|
|
{{ range $pagesRange }}
|
2021-01-20 20:12:50 +01:00
|
|
|
<div class="post-short-list h-entry">
|
2021-12-19 12:10:10 +01:00
|
|
|
<div class="post-header">
|
2021-12-23 19:56:08 +01:00
|
|
|
<header>
|
2023-08-12 10:28:38 +02:00
|
|
|
<h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " | markdownify }}</a></h2>
|
2021-12-19 12:10:10 +01:00
|
|
|
{{ partial "post-language-switcher.html" . }}
|
|
|
|
</header>
|
|
|
|
</div>
|
2023-07-06 16:11:45 +02:00
|
|
|
{{ if $showFullContent }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ end }}
|
2021-07-09 18:00:52 +02:00
|
|
|
{{ partial "post-info.html" . }}
|
2021-01-20 20:12:50 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-07-20 19:02:59 +02:00
|
|
|
{{ if $showFullContent }}
|
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
{{ end}}
|
2021-01-20 20:12:50 +01:00
|
|
|
</div>
|
2020-01-12 07:51:51 +01:00
|
|
|
|
2024-04-09 14:03:09 +02:00
|
|
|
{{ end }}
|