Welcome to mirror list, hosted at ThFree Co, Russian Federation.

episode.rss.xml « section « layouts - github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d70ead34b23e6c2dc69976e0ef7028df741b12da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
     xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>{{ .Site.Title }}</title>
    <atom:link href="{{ .Site.BaseURL }}/episode/index.xml" rel="self" type="application/rss+xml" />
    <link>{{ .Site.BaseURL }}</link>
    <lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <language>en-us</language>
    <copyright>{{ .Site.Params.feed_copyright }}</copyright>
    <itunes:subtitle>{{ .Site.Params.feed.itunes_subtitle }}</itunes:subtitle>
    <itunes:author>{{ .Site.Params.feed.itunes_author }}</itunes:author>
    <itunes:summary>{{ .Site.Params.feed.itunes_summary }}</itunes:summary>
    <description>{{ .Site.Params.feed.itunes_summary }}</description>
    <itunes:owner>
    <itunes:name>{{ .Site.Params.feed.itunes_owner_name }}</itunes:name>
    <itunes:email>{{ .Site.Params.feed.itunes_owner_email }}</itunes:email>
    </itunes:owner>
    <itunes:image href="{{ .Site.Params.feed.itunes_image }}" />
    <itunes:category text="{{ .Site.Params.feed.itunes_top_category }}">
      {{ if (isset .Site.Params.feed "itunes_first_sub_category") }}
      <itunes:category text="{{ .Site.Params.feed.itunes_first_sub_category }}" />
      {{ end }}
      {{ if (isset .Site.Params.feed "itunes_second_sub_category") }}
      <itunes:category text="{{ .Site.Params.feed.itunes_second_sub_category }}" />
      {{ end }}
    </itunes:category>
    {{ range (where .Site.Pages "Type" "episode") }}
    <item>
      <title>{{ title .Title }}</title>
      <itunes:author> {{ .Site.Params.itunes_author }}</itunes:author>
      <itunes:summary>{{ .Description }}</itunes:summary>
      <description>{{ .Description }}</description>
      <enclosure url="{{ .Site.Params.media_prefix }}{{ .Params.podcast_file }}" {{if isset .Params "podcast_bytes"}}{{if ne .Params.podcast_bytes ""}}length="{{ .Params.podcast_bytes}}"{{ end }}{{ end }} type="audio/mpeg" />
      <guid>{{ .Params.podcast }}</guid>
      <link>{{ .Permalink }}</link>
      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} </pubDate>
      <itunes:duration>{{ .Params.podcast_duration}}</itunes:duration>
      <itunes:explicit>{{ .Params.explicit}}</itunes:explicit>
    </item>
    {{ end }}
  </channel>
</rss>