Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions hugo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,17 @@ google_analytics_tracking_id = ""

# Facebook Like
facebook_like = "false"

[mediaTypes]
[mediaTypes."application/rss"]
suffixes = ["rss"]

[outputFormats]
[outputFormats.ArchiveRSS]
baseName = "podcast-archives"
mediaType = "application/rss"
isPlainText = false
notAlternative = true

[outputs]
home = ["HTML", "RSS", "ArchiveRSS"]
3 changes: 2 additions & 1 deletion hugo/themes/pirates-radio-t/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<header>
<h1 class="entry-title">Архивы</h1>
<p><a href="/podcast-archives.rss" class="archive-rss">RSS всех выпусков</a></p>
</header>


Expand All @@ -35,7 +36,7 @@ <h2>{{ .Key }}</h2>



{{ template "_internal/pagination.html" . }}
<nav class="pagination">{{ template "_internal/pagination.html" . }}</nav>



Expand Down
55 changes: 55 additions & 0 deletions hugo/themes/pirates-radio-t/layouts/index.archiverss.rss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<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>Пираты Радио-Т Архивы</title>
<atom:link href="https://pirates.radio-t.com/podcast-archives.rss" rel="self" type="application/rss+xml" />
<link>{{ .Site.BaseURL }}</link>
<description>{{ .Site.Params.description }}</description>
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<copyright>radio-t, {{ with .Site.Copyright }}{{.}}{{ end }}</copyright>

<language>ru</language>
<itunes:author>Umputun, Bobuk, Gray, Ksenks, Alek.sys</itunes:author>
<itunes:subtitle>{{ .Site.Params.subtitle }}</itunes:subtitle>
<itunes:explicit>no</itunes:explicit>
<itunes:owner>
<itunes:name>Umputun, Bobuk, Gray, Ksenks, Alek.sys</itunes:name>
<itunes:email>podcast@radio-t.com</itunes:email>
</itunes:owner>

<itunes:image href="https://pirates.radio-t.com/images/pirates-logo-big.jpg" />
<itunes:summary>{{ .Site.Params.description }}</itunes:summary>
<itunes:category text="Technology">
<itunes:category text="Tech News"/>
</itunes:category>

<itunes:keywords>hitech,russian,radiot,tech,news,радио-т</itunes:keywords>

{{ range (where .Site.RegularPages "Section" "posts") }}
{{ $num := replace .Slug "podcast-" "" }}{{ if and (hasPrefix .Slug "podcast-") (ne $num "") }}
<item>
<link>{{ .Permalink }}</link>
<title>{{ .Title }}</title>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<description>авторы говорят о всяком разном, без заранее подготовленных тем</description>

<enclosure url="http://cdn.radio-t.com/rt{{ $num }}post.mp3" type="audio/mp3" length="0" />
<guid>{{ .Permalink }}</guid>

<itunes:author>{{ .Params.author }}</itunes:author>
<itunes:summary>{{ .Content | plainify }}</itunes:summary>
<itunes:image href="https://pirates.radio-t.com/images/pirates-logo-big.jpg" />
</item>{{ end }}
{{ end }}
</channel>
</rss>
2 changes: 1 addition & 1 deletion hugo/themes/pirates-radio-t/layouts/section/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
</div>
{{ end }}
</section>
{{ template "_internal/pagination.html" . }}
<nav class="pagination">{{ template "_internal/pagination.html" . }}</nav>
</article>
{{ end }}
2 changes: 1 addition & 1 deletion hugo/themes/pirates-radio-t/static/stylesheets/screen.css

Large diffs are not rendered by default.