jk.nipponalba.scot website https://jk.nipponalba.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

39 lines
2.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  2. <channel>
  3. <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
  4. <link>{{ .Permalink }}</link>
  5. <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
  6. <generator>Hugo -- gohugo.io</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. {{ with .OutputFormats.Get "RSS" }}
  13. {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
  14. {{ end }}
  15. {{ range .Pages }}
  16. <item>
  17. <title>{{ .Title }}</title>
  18. <link>{{ .Permalink }}</link>
  19. {{ if eq .Params.posttype "in-reply-to" }}<link>{{ index .Params "in-reply-to" }}</link>{{ end }}
  20. {{ if eq .Params.posttype "like-of" }}<link>{{ index .Params "like-of" }}</link>{{ end }}
  21. {{ if eq .Params.posttype "repost-of" }}<link>{{ index .Params "repost-of" }}</link>{{ end }}
  22. <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
  23. {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
  24. <guid>{{ .Permalink }}</guid>
  25. <description>
  26. {{ .Content | plainify }}
  27. ({{ .Permalink }})
  28. {{ range .Params.Photo }}
  29. {{ if not ( in . "http" ) }}
  30. <media:content xmlns:media="http://search.yahoo.com/mrss" url="https://jk.nipponalba.scot{{.}}" medium="image" type="image/jpeg"/>
  31. {{ else }}
  32. <media:content xmlns:media="http://search.yahoo.com/mrss" url="{{.}}" medium="image" type="image/jpeg"/>
  33. {{ end }}
  34. {{ end }}
  35. </description>
  36. </item>
  37. {{ end }}
  38. </channel>
  39. </rss>