trwnh.com/hugo/layouts/index.html

31 lines
784 B
HTML
Raw Normal View History

2022-07-11 22:50:12 +00:00
{{ 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 }}