website-theme/layouts/feed/list.html

25 lines
828 B
HTML
Raw Normal View History

2022-05-02 04:05:34 +00:00
{{ define "main"}}
{{ partial "header.html" . }}
<main>
2022-05-08 22:02:35 +00:00
{{ partial "search.html" . }}
<!-- contents -->
2023-01-04 02:00:27 +00:00
<div id="feedList" class="block-center">
2022-05-08 22:02:35 +00:00
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ range .Pages }}
<article class="h-entry">
<a href="{{ .Permalink }}"><h2 class='title p-name'>{{ .Title }}</h2></a>
2022-05-08 22:02:35 +00:00
{{ .Scratch.Set "noDateUpdate" true }}
{{ partial "date.html" . }}
2022-05-02 04:05:34 +00:00
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
2022-05-08 22:02:35 +00:00
<div class="e-content">
{{ .Content }}
</div>
</article>
{{ end }}
{{ end }}
</div>
</main>
2022-05-02 04:05:34 +00:00
{{ partial "footer.html" . }}
{{ end }}