Theme for nonserviam.media
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.

rss.xml 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <rss version="2.0"
  2. xmlns:atom="http://www.w3.org/2005/Atom"
  3. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  4. xmlns:dc="http://purl.org/dc/elements/1.1/"
  5. xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  6. >
  7. <channel>
  8. {{ partial "title.html" . }}
  9. <link>{{ .Permalink }}</link>
  10. {{ with $.Site.Params.description }}
  11. <description>{{ . }}</description>
  12. <itunes:subtitle>{{ . }}</itunes:subtitle>
  13. {{ end }}
  14. <generator>Hugo — gohugo.io</generator>
  15. {{ with .Site.LanguageCode }} <language>{{.}}</language>{{end}}
  16. {{ with .Site.Author.email }}
  17. <itunes:owner>
  18. <itunes:email>{{ . }}</itunes:email>
  19. {{ with $.Site.Params.podcast_name }}
  20. <itunes:name>{{ . }}
  21. {{ end }}
  22. </itunes:owner>
  23. <managingEditor>{{.}}
  24. {{ with $.Site.Author.name }} ({{.}}){{end}}
  25. </managingEditor>
  26. {{end}}
  27. {{ with $.Site.Author.name }}
  28. <itunes:author>{{ . }}</itunes:author>
  29. {{ end }}
  30. {{ with .Site.Author.email }}
  31. <webMaster>{{.}}
  32. {{ with $.Site.Author.name }} ({{.}}){{end}}
  33. </webMaster>
  34. {{end}}
  35. {{ with .Site.Copyright }}
  36. <copyright>{{.}}</copyright>
  37. {{end}}
  38. {{ if not .Date.IsZero }}
  39. <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
  40. {{ end }}
  41. {{ with .OutputFormats.Get "RSS" }}
  42. {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
  43. {{ end }}
  44. {{ if $.Param "images" }}
  45. {{ range first 6 ($.Param "images") }}
  46. <image>
  47. <title>{{ if eq $.Title $.Site.Title }}{{ $.Site.Title }}{{ else }}{{ with $.Title }}{{.}} on {{ end }}{{ $.Site.Title }}{{ end }}</title>
  48. <link>{{ $.Permalink }}</link>
  49. <url>{{ . | absURL }}</url>
  50. </image>
  51. <itunes:image href="{{ . | absURL }}" />
  52. {{ end }}
  53. {{ end }}
  54. {{ with $.Site.Params.category }}
  55. <itunes:category text="{{ . | html }}" />
  56. {{ end }}
  57. <itunes:explicit>{{ if $.Site.Params.explicit }}yes{{ else }}no{{ end }}</itunes:explicit>
  58. {{ range .Pages }}
  59. {{ $page := . }}
  60. <item>
  61. <title>{{ .Title }}</title>
  62. <link>{{ .Permalink }}</link>
  63. <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
  64. {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
  65. <guid>{{ .Permalink }}</guid>
  66. {{ with .Summary }}
  67. <itunes:summary>{{ . | html }}</itunes:summary>
  68. <description>{{ . | html }}</description>
  69. {{ end }}
  70. <content:encoded>{{ .Content | html }}</content:encoded>
  71. {{ if ne (.Param "hide_author") true }}
  72. {{ with .Params.author }}
  73. <dc:creator>{{ . }}</dc:creator>
  74. <itunes:author>{{ . }}</itunes:author>
  75. {{ else }}
  76. {{ with $.Site.Author.name }}
  77. <dc:creator>{{ . }}</dc:creator>
  78. <itunes:author>{{ . }}</itunes:author>
  79. {{ end }}
  80. {{ end }}
  81. {{ end }}
  82. {{ if .Param "explicit" }}
  83. <itunes:explicit>yes</itunes:explicit>
  84. {{ else }}
  85. <itunes:explicit>no</itunes:explicit>
  86. {{ end }}
  87. {{ range $.Site.Params.audio_links }}
  88. {{ $audioFile := $page.Param .param_name }}
  89. {{ if $audioFile }}
  90. {{ if .type }}
  91. {{ $path := path.Join "static" $audioFile }}
  92. {{ if fileExists $path }}
  93. {{ $stat := os.Stat $path }}
  94. <enclosure url="{{ $audioFile | absURL }}" size="{{ $stat.Size }}" type="{{ .type }}" />
  95. {{ end }}
  96. {{ end }}
  97. {{ end }}
  98. {{ end }}
  99. </item>
  100. {{ end }}
  101. </channel>
  102. </rss>