{{- $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_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} {{- $icon_png := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{ $title }} on {{ .Site.Title }} {{ $icon_png.Permalink }} {{ .Site.Params.icon | absURL }} {{- if .Params.Description -}} {{- .Params.Description -}} {{- else -}} {{- .Site.Params.Description -}} {{- end -}} {{ $period }} 2 http://activitystrea.ms/schema/1.0/person Seirdy Seirdy Rohan Kumar https://seirdy.one/ {{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Permalink }} {{ range $pages -}} {{- if not .Params.Private }} {{ .Title }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} Rohan Kumar https://seirdy.one/ {{ .Permalink }} CC-BY-SA 4.0 by Rohan Kumar {{- with .Params.replyURI }} {{- end -}} {{- with .Params.replyAuthorURI }} {{- 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 }}
{{- $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 }}
{{- end -}} {{- end }}