blog/themes/minth/layouts/_default/home.html

13 lines
368 B
HTML
Raw Permalink Normal View History

{{ 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>
{{ range $allPostsList }}
2024-09-28 18:24:40 +00:00
<li><a class="title" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
2024-09-28 18:24:40 +00:00
</ul>
{{ end }}