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.

64 lines
3.5 KiB

4 years ago
4 years ago
4 years ago
4 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. {{ if eq (trim .Permalink "index.xml") (string .Site.BaseURL)}}
  16. {{ range where .Site.Pages "Kind" "page" }}
  17. <item>
  18. <title>{{ .Title }}</title>
  19. <link>{{ .Permalink }}</link>
  20. {{ if eq .Params.posttype "in-reply-to" }}<link>{{ index .Params "in-reply-to" }}</link>{{ end }}
  21. {{ if eq .Params.posttype "like-of" }}<link>{{ index .Params "like-of" }}</link>{{ end }}
  22. {{ if eq .Params.posttype "repost-of" }}<link>{{ index .Params "repost-of" }}</link>{{ end }}
  23. <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
  24. {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
  25. <guid>{{ .Permalink }}</guid>
  26. <description>
  27. {{ .Content | plainify }}
  28. ({{ .Permalink }})
  29. {{ range .Params.Photo }}
  30. {{ if not ( in . "http" ) }}
  31. <media:content xmlns:media="http://search.yahoo.com/mrss" url="https://jk.nipponalba.scot{{.}}" medium="image" type="image/jpeg"/>
  32. {{ else }}
  33. <media:content xmlns:media="http://search.yahoo.com/mrss" url="{{.}}" medium="image" type="image/jpeg"/>
  34. {{ end }}
  35. {{ end }}
  36. </description>
  37. </item>
  38. {{ end }}
  39. {{else}}
  40. {{ range .Pages}}
  41. <item>
  42. <title>{{ .Title }}</title>
  43. <link>{{ .Permalink }}</link>
  44. {{ if eq .Params.posttype "in-reply-to" }}<link>{{ index .Params "in-reply-to" }}</link>{{ end }}
  45. {{ if eq .Params.posttype "like-of" }}<link>{{ index .Params "like-of" }}</link>{{ end }}
  46. {{ if eq .Params.posttype "repost-of" }}<link>{{ index .Params "repost-of" }}</link>{{ end }}
  47. <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
  48. {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
  49. <guid>{{ .Permalink }}</guid>
  50. <description>
  51. {{ .Content | plainify }}
  52. ({{ .Permalink }})
  53. {{ range .Params.Photo }}
  54. {{ if not ( in . "http" ) }}
  55. <media:content xmlns:media="http://search.yahoo.com/mrss" url="https://jk.nipponalba.scot{{.}}" medium="image" type="image/jpeg"/>
  56. {{ else }}
  57. <media:content xmlns:media="http://search.yahoo.com/mrss" url="{{.}}" medium="image" type="image/jpeg"/>
  58. {{ end }}
  59. {{ end }}
  60. </description>
  61. </item>
  62. {{ end }}{{ end }}
  63. </channel>
  64. </rss>