apotheke/layouts/partials/list.html

32 lines
833 B
HTML
Raw Normal View History

2024-05-27 21:13:51 +00:00
<div class="container list-posts">
2024-06-19 22:18:29 +00:00
{{ $posts := where .Site.Pages "Params.type" "post"}}
2024-05-27 21:13:51 +00:00
2024-06-19 22:18:29 +00:00
{{ $ch1 := "on logic" }}
{{ $ch2 := "on free will"}}
{{ if eq .Title "Theses" }}
<h1 class="list-title">{{ lower "Philopsophical Inquiries" }}</h1>
{{ end }}
<h3 class="chapter-title">{{ lower $ch1 }}</h3>
{{ range (where $posts "Params.chapter" $ch1).ByParam "section" }}
<article class="post-title">
<a href="{{ .Permalink }}" class="post-link">{{ .Title }}</a>
</article>
{{ end }}
<h3 class="chapter-title">{{ lower $ch2 }}</h3>
{{ range (where $posts "Params.chapter" $ch2).ByParam "section" }}
<article class="post-title">
<a href="{{ .Permalink }}" class="post-link">{{ .Title }}</a>
</article>
{{ end }}
2024-05-27 21:13:51 +00:00
</div>