trwnh.com/hugo/layouts/index.html
2022-07-11 17:50:12 -05:00

31 lines
No EOL
784 B
HTML

{{ define "head" }}
{{ end }}
{{ define "main" }}
<main id="index">
<div class="container">
{{partial "h-card.html" .}}
<section class="h-feed">
<h2>Latest content</h2>
{{$paginator := .Paginate (.Site.RegularPages) 20}}
{{range $paginator.Pages}}
{{if eq .Params.type "note" }}
<article class="h-entry note">
<div class="e-content">{{.Content}}</div>
</article>
{{end}}
{{if eq .Params.type "reply"}}
<article class="h-entry reply">
<a href="{{.Permalink}}" class="p-name">{{.Title}}</a>
<a href="{{.Params.inReplyTo}}" class="u-in-reply-to"></a>
<a href="{{.Params.original}}" class="u-syndication"></a>
<p class="p-summary">{{.Summary}}</p>
</article>
{{end}}
{{end}}
</section>
</div>
</main>
{{ end }}