jekyll-octopod 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/_plugins/feed_generator.rb +1 -1
- data/assets/_plugins/octopod_filters.rb +2 -2
- data/lib/jekyll/octopod/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e735d8a48e524e09ffad382a1f2d062fea3974bb
|
4
|
+
data.tar.gz: 7018a8253310ef345522adafcdd7c959f5725f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c68d35a3dcbcaa4a323258161ff3279b220e38eff08fbec042e6603f7d9d1b610f012ad9899c3a5b4428eb70bf9e8cfee5d883f85d5b901e1cbc1d80e545c9
|
7
|
+
data.tar.gz: 7c86f39bf29eb6796157410712e7f8e2bf8ea616ad0fda0c7e4bf2942742865507cea45ef34e85d220be5fcbd3486b2a37d1727ad398a7ac02d911e94ad6d105
|
@@ -24,7 +24,7 @@ module Jekyll
|
|
24
24
|
safe true
|
25
25
|
|
26
26
|
def generate(site)
|
27
|
-
pages_total = site.posts.docs.count / site.config["episodes_per_feed_page"].ceil
|
27
|
+
pages_total = (site.posts.docs.count.to_f / site.config["episodes_per_feed_page"]).ceil
|
28
28
|
|
29
29
|
site.config["episode_feed_formats"].each do |page_format|
|
30
30
|
name = "episodes." + page_format + ".rss"
|
@@ -143,8 +143,8 @@ module Jekyll
|
|
143
143
|
def web_player_moderator(page, site)
|
144
144
|
return if page['audio'].nil?
|
145
145
|
out = %Q{<div class="podlove-player-wrapper">}
|
146
|
-
out = out + %Q{ <audio data-podlove-web-player-source="/players/#{page['slug']}/index.html">\n}
|
147
|
-
out = out + " <source src='episodes/#{page['audio']['mp3']}' type='audio/mp3'>\n"
|
146
|
+
out = out + %Q{ <audio data-podlove-web-player-source="#{site['url']}/players/#{page['slug']}/index.html">\n}
|
147
|
+
out = out + " <source src='#{site['url']}/episodes/#{page['audio']['mp3']}' type='audio/mp3'>\n"
|
148
148
|
out = out + " </audio>\n"
|
149
149
|
out = out + "</div>\n"
|
150
150
|
out = out + "<script>$('audio').podlovewebplayer();</script>\n"
|