{{- $pages := slice -}} {{- if .IsHome -}} {{- $pages = where .Site.RegularPages "Type" "not in" (slice "memex" "timeless" "site-infra" "reading-lists" "notes" "likes") -}} {{- else -}} {{- $pages = .Pages -}} {{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} {{- printf "" | safeHTML }} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink | absURL }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" (.Permalink | absURL) .MediaType | safeHTML }} {{- end -}} {{ printf "" }} {{- range $i, $page := (first 42 $pages) -}} {{- if $page.Params.inReplyTo -}}{{ continue }}{{- end -}} {{ .Title | default (delimit (slice "An untitled" (.Date.Format "January") (.Type | singularize)) " ") }} {{ .Permalink | absURL }} {{ if .Page.Params.Audio }}{{end}} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ .Permalink | absURL }} {{- if .Params.bookmarkOf -}} {{- $reference := partial "reference.obj" (dict "url" .Params.bookmarkOf "page" .) -}} Thoughts on a bookmarked article{{ with $reference.name }}: {{.}}{{ end }}. {{- else -}} {{- if eq .Section "calendar" -}}(An event I may be going to.) {{ end -}} {{- $desc := (index (split .Summary "\n") 0) | safeHTML -}} {{- $desc -}} {{- range .Params.tags }} #{{.}}{{ end -}} {{- end -}} {{- range $i, $src := .Params.Media }} <img src="{{ path.Join $page.RelPermalink $src.url | absURL }}" {{ with $src.alt }}alt="{{ . }}" {{ end }}/><br/> {{- end }} {{- if eq .Section "calendar" -}} {{ $timing := dict -}} {{ range .Params.timings -}} {{ if (time.AsTime .starts).After time.Now -}} {{ $timing = . -}} {{ break -}} {{ end -}} {{ end -}} {{ if $timing }} <p><i><small>I'm planning on going to this event on {{ partial "year-relative-date.txt" (time.AsTime $timing.starts) }}. See the bottom of <a href="{{ .Permalink | absURL }}#post-info">the post</a> for more information, and get in touch if you'd like to go together!</small></i></p> {{ end }} {{- end -}} {{ if .Params.bookmarkOf }} <p><i><small>{{ partial "bookmark-of.html" . | html }}</small></i></p> {{ else if .Params.inReplyTo }} <p><i><small>{{ partial "in-reply-to.html" . | html }}</small></i></p> {{ end }} {{ .Content | html }} {{- range .Params.syndications}} {{ . }} {{- end }} {{- range $i, $src := .Params.Media }} {{ with $page.Resources.Get $src.url }} {{ end }} {{- end }} {{ end }}