rss.xml 1.4 KB

123456789101112131415161718192021222324
  1. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  2. <channel>
  3. <title>{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}</title>
  4. <link>{{ .Permalink }}</link>
  5. <description>Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
  6. <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator>{{ with .Site.LanguageCode }}
  7. <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
  8. <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
  9. <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
  10. <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
  11. <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
  12. <atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
  13. {{ range first 15 .Data.Pages }}
  14. <item>
  15. <title>{{ .Title }}</title>
  16. <link>{{ .Permalink }}</link>
  17. <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
  18. {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
  19. <guid>{{ .Permalink }}</guid>
  20. <description>{{ .Content | html }}</description>
  21. </item>
  22. {{ end }}
  23. </channel>
  24. </rss>