{{- $pages := (where site.RegularPages "Section" .Section) -}} {{- $period := "daily" -}} {{- $title := .Section | humanize -}} {{- if .IsHome -}} {{- $title = "All content" -}} {{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}} {{- $period = "hourly" -}} {{- end -}} {{- if eq .Section "notes" -}} {{- $period = "hourly" -}} {{- end -}} {{- $faviconSvg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} {{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{- $atomLogo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}} {{ $title }} on {{ .Site.Title }} {{- if .Params.Description -}} {{- .Params.Description -}} {{- else -}} {{- .Site.Params.Description -}} {{- end -}} {{ $faviconSvg.Permalink }} {{ $image.Permalink }} {{ $atomLogo.Permalink }} {{ $atomLogo.Permalink }} 191919 {{ $period }} 2 http://activitystrea.ms/schema/1.0/person {{ .Site.Author.name }} {{ .Site.Author.nick }} {{ .Site.Author.name }} {{ .Site.Author.email }} https://seirdy.one/ {{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }} Hugo {{ .Site.Hugo.Version }} {{ .Permalink }} {{ range $pages -}} {{- if not .Params.Private -}} {{- .Page.Scratch.Set "codeIndex" 1 -}} {{ .Title }} {{ .Permalink }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Site.Author.name }}https://seirdy.one/ CC-BY-SA 4.0 {{- with .Params.replyURI -}} {{- end -}} {{- with .Params.replyAuthorURI -}} {{- end -}} {{- $type := "article" -}} {{- if eq .Section "notes" -}} {{- $type = "note" -}} {{- end -}} http://activitystrea.ms/schema/1.0/{{ $type }} http://activitystrea.ms/schema/1.0/post {{- with .Params.image -}} {{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}} {{- end -}}
{{- if .Params.replyURI -}} {{- partial "reply-context" .Params | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }} {{- end -}} {{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | replaceRE `` "" | safeHTML -}}
{{ .Page.Scratch.Get "webmentionCount" }}
{{ end -}} {{- end }}