jekyll-octopod 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 407054feab491c836c3756f08d6fb2a9e107d66d
4
- data.tar.gz: 6ca029cd8f126d6764458760720ecf6216d8a81d
3
+ metadata.gz: 57c91e0ae67ba170c7b3277c22d116a49742a537
4
+ data.tar.gz: 2384e3c4d7ecb3470a7c5400ebea23c083e44a06
5
5
  SHA512:
6
- metadata.gz: e96c4a9e63b139683a7713fdd396ffa3968c996b44d22b15ab7c4d3c5a16c6bd1c757afcd63be0ea5036103e679cda4f95749e990d7fe0defe0d565941905681
7
- data.tar.gz: a2eb1e597101a284150cefcece71617aa7a1628997d72eabac7bb03c7bc9f66db5b5166b763e0f9b0f601643e241326ba55e9c97e11baf9405f208fe32744ea0
6
+ metadata.gz: f92f29b8ab969bea473b20a779df3c9af81ace6cfc0a8004ccb32af5262554f6736fb83e7839da0c774342d4aa750d2b63cd0f5d712e9860ece62201fe4923cd
7
+ data.tar.gz: d6116d0a5a8b19517037f5c76853928bff1cee09320bcd91cfe17e5a139cdc2999706e34ec05cf5339c19c48b3ee4f5d7364ae96d712e7ad74eaca8ce248cb81
@@ -38,34 +38,39 @@ layout: null
38
38
  <itunes:category text="{{ category }}">
39
39
  {% endfor %}
40
40
  </itunes:category>
41
- {% for post in site.posts %}{% if post.audio[page.format] %}
42
- <item>
43
- <title>{{ post.title }} - {{ post.subtitle }}</title>
44
- <link>{{ site.url }}{{ post.url }}</link>
45
- <comments>{{ site.url }}{{ post.url }}#disqus_thread</comments>
46
- <pubDate>{{ post.date | time_to_rssschema }}</pubDate>
47
- {% for category in post.categories %}
48
- <category><![CDATA[{{ category }}]]></category>
49
- {% endfor %}
50
- <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
51
- <description><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></description>
52
- <content:encoded><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></content:encoded>
53
- <enclosure url="{{ site.url | http_only }}/episodes/{{ post.audio | audio:page.format }}" length="{{ post.audio | audio:page.format | file_size }}" type="{{ page.format | mime_type }}" />
54
- <itunes:keywords>{{ post.tags }}</itunes:keywords>
55
- <itunes:subtitle>{{ post.subtitle }}</itunes:subtitle>
56
- <itunes:summary>{{ post.summary }}</itunes:summary>
57
- <itunes:author>{{ post.author | otherwise:site.author }}</itunes:author>
58
- <itunes:explicit>{{ post.explicit | otherwise:site.explicit }}</itunes:explicit>
59
- <itunes:duration>{{ post.duration }}</itunes:duration>
60
- {{ site | flattr_rss:post }}
61
- {% if post.chapters %}
62
- <psc:chapters version="1.1" xmlns:psc="http://podlove.org/simple-chapters">
63
- {% for chapter in post.chapters %}
64
- <psc:chapter start="{{ chapter | split_chapter:'start' }}" title="{{ chapter | split_chapter:'title' }}" />
65
- {% endfor %}
66
- </psc:chapters>
41
+ {% for post in site.posts %}
42
+ {% if post.audio[page.format] %}
43
+ {% assign check = forloop.index | plus:1 | divided_by:site.episodes_per_feed_page %}
44
+ {% if check == page.page_number %}
45
+ <item>
46
+ <title>{{ post.title }} - {{ post.subtitle }}</title>
47
+ <link>{{ site.url }}{{ post.url }}</link>
48
+ <comments>{{ site.url }}{{ post.url }}#disqus_thread</comments>
49
+ <pubDate>{{ post.date | time_to_rssschema }}</pubDate>
50
+ {% for category in post.categories %}
51
+ <category><![CDATA[{{ category }}]]></category>
52
+ {% endfor %}
53
+ <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
54
+ <description><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></description>
55
+ <content:encoded><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></content:encoded>
56
+ <enclosure url="{{ site.url | http_only }}/episodes/{{ post.audio | audio:page.format }}" length="{{ post.audio | audio:page.format | file_size }}" type="{{ page.format | mime_type }}" />
57
+ <itunes:keywords>{{ post.tags }}</itunes:keywords>
58
+ <itunes:subtitle>{{ post.subtitle }}</itunes:subtitle>
59
+ <itunes:summary>{{ post.summary }}</itunes:summary>
60
+ <itunes:author>{{ post.author | otherwise:site.author }}</itunes:author>
61
+ <itunes:explicit>{{ post.explicit | otherwise:site.explicit }}</itunes:explicit>
62
+ <itunes:duration>{{ post.duration }}</itunes:duration>
63
+ {{ site | flattr_rss:post }}
64
+ {% if post.chapters %}
65
+ <psc:chapters version="1.1" xmlns:psc="http://podlove.org/simple-chapters">
66
+ {% for chapter in post.chapters %}
67
+ <psc:chapter start="{{ chapter | split_chapter:'start' }}" title="{{ chapter | split_chapter:'title' }}" />
68
+ {% endfor %}
69
+ </psc:chapters>
70
+ {% endif %}
71
+ </item>
72
+ {% endif %}
67
73
  {% endif %}
68
- </item>
69
- {% endif %}{% endfor %}
74
+ {% endfor %}
70
75
  </channel>
71
76
  </rss>
@@ -16,6 +16,7 @@ module Jekyll
16
16
  end
17
17
  self.data['myself'] = page_number == 1 ? nil : "?page=" + page_number.to_s
18
18
  self.data['format'] = format
19
+ self.data['page_number'] = page_number
19
20
  end
20
21
  end
21
22
 
@@ -3,7 +3,7 @@ module Jekyll
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 6
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-octopod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Eilermann