{{- /* The reference used to create this template is at https://cyber.harvard.edu/rss/rss.html. The template does miss out on certain things which I put it on a list for those who are interested: * Since there's no standard for multiple authors (with ) in the element, I decided it would be best to leave it out for now. * The name was left out for certain elements that requires an email address (like , , or in the . * is a permalink to the HTML post. * No . * contains the whole post; if you want to change it to and make a summarized version, refer to https://www.rssboard.org/rss-profile and change the description tag with `.Summary | safeHTML`. */ -}} {{ printf "" | safeHTML }} {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io {{ with .Site.LanguageCode }} {{.}} {{end}} {{ with .Site.Author.email }} {{.}} {{.}} {{end}} {{ with .Site.Copyright }}{{ . }}{{ else }}© {{ now.Year }} to the author(s) behind {{ .Site.Title }}{{ end }} {{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }} https://cyber.harvard.edu/rss/rss.html {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} {{- /* Point the alternative output formats. */ -}} {{ range .AlternativeOutputFormats }} {{ printf "" .Permalink .Rel .MediaType | safeHTML }} {{ end }} {{- /* Iterate each valid regular page. */ -}} {{ $limit := cond (gt .Site.Params.feedLimit 0) .Site.Params.feedLimit 10 }} {{ range first $limit (where .Site.RegularPages ".Params.date" "!=" nil) }} {{ .Title }} {{ .Permalink }} {{ range .Params.tags }} {{ . }} {{ end }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ .Permalink }} {{ .Content | html }} {{ end }}