www.byjp.me/layouts/notes/list.html
2024-10-11 10:17:16 +01:00

35 lines
1.3 KiB
HTML

{{ define "main" }}
{{ $paginator := .Paginate .Data.Pages }}
{{/* Ignore entirely from search, as we want to index the individual notes, not this stream */}}
<main class="posts" data-pagefind-ignore="all">
{{ partial "generic-list-header.html" . }}
<hgroup class="post-title">
<h1 class="p-name">
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
</h1>
{{ partial "alternates.html" . }}
</hgroup>
{{ if .Content }}
<div class="content" data-pagefind-body data-pagefind-filter="type:{{.Type | title}}">{{ .Content }}</div>
{{ end }}
<div class="posts-list">
{{ range $paginator.Pages }}
<hr />
<article class="post-content e-content">
{{ .Content }}
<footer>
<a href="{{.RelPermalink}}">{{ partial "year-relative-date.html" .Date }}</a>
{{ if collections.In .Params.tags "from-twitter" }}{{ partialCached "svg.html" (dict "name" "twitter") "twitter" }}{{ end }}
</footer>
</article>
{{ end }}
</div>
{{ partial "pagination-list.html" . }}
</main>
{{ end }}