{{- $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 -}} {{- $icon := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} {{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{- $logo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}} {{ $title }} on {{ .Site.Title }} {{- if .Params.Description -}} {{- .Params.Description -}} {{- else -}} {{- .Site.Params.Description -}} {{- end -}} {{ $icon.Permalink }} {{ $icon.Permalink }} {{ $logo.Permalink }} 191919 {{ $period }} 2 http://activitystrea.ms/schema/1.0/person {{ .Site.Author.name }} {{ .Site.Author.nick }} {{ .Site.Author.name }} https://seirdy.one/ {{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Permalink }} {{ range $pages -}} {{- if not .Params.Private -}} {{ .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 -}}
{{ end -}} {{- end }}