2024-03-26 21:51:04 +00:00
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }}
|
|
|
|
{{ $allPostsList := where (where site.RegularPages "Section" "in" $postsDir) "Section" "!=" "" }}
|
2024-09-28 18:24:40 +00:00
|
|
|
<p>posts:</p>
|
|
|
|
<ul>
|
2024-03-26 21:51:04 +00:00
|
|
|
{{ range $allPostsList }}
|
2024-09-28 18:24:40 +00:00
|
|
|
<li><a class="title" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
2024-03-26 21:51:04 +00:00
|
|
|
{{ end }}
|
2024-09-28 18:24:40 +00:00
|
|
|
</ul>
|
2024-03-26 21:51:04 +00:00
|
|
|
{{ end }}
|