jekyll-octopod 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/_config.yml +47 -0
- data/lib/jekyll/octopod_filters.rb +9 -5
- data/lib/jekyll/podigee_player_tag.rb +2 -2
- data/lib/octopod/version.rb +1 -1
- metadata +3 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875fe6a910dde49bb7ddb6cb03f7e9e0d17127c5
|
4
|
+
data.tar.gz: 4a3cb647b3b1b1f6f8d37a2b0ff5b70dc16f343a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9272ada71275f2b4ff3aad0195ff13ee245c9e2de6809efc84f4237333079e893657977c3d09c878c94f6769b754c9bb3cd6270100cecf1a1e38c9507e66a6
|
7
|
+
data.tar.gz: 91b3c2c9aac4eda5b161af87b33e6b2f4d3b32306b04569d56339e8f8778e9e5586468ff4cef5716b085991d6bb2ecc6b5c12d266506e6d14cbf2084f9db9485
|
data/assets/_config.yml
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# You have to configure this ###################################################
|
2
|
+
title: Octopod
|
3
|
+
# You should configure this ####################################################
|
4
|
+
url: http://localhost:4000
|
5
|
+
subtitle: Static Site Podcast Publishing for Geeks
|
6
|
+
description: My super duper cool podcast.
|
7
|
+
author: Uncle Octopod
|
8
|
+
email: octopod@example.com
|
9
|
+
keywords: [octopod, podcast, magic]
|
10
|
+
itunes_categories: [Technology]
|
11
|
+
# additional_feeds:
|
12
|
+
# itunes: http://itunes.apple.com/de/podcast/podcast_name/id42424242
|
13
|
+
# torrent_m4a: http://bitlove.org/example_user/example_podcast_m4a/feed
|
14
|
+
# torrent_mp3: http://bitlove.org/example_user/example_podcast_mp3/feed
|
15
|
+
episodes_per_feed_page: 100
|
16
|
+
## Rsync Deploy config #########################################################
|
17
|
+
### Be sure your public key is listed in your server's ~/.ssh/authorized_keys
|
18
|
+
### file.
|
19
|
+
ssh_host: user@host.org
|
20
|
+
ssh_port: 22
|
21
|
+
document_root: /path/to/your/htdocs/
|
22
|
+
rsync_delete: true
|
23
|
+
# You can configure this #######################################################
|
24
|
+
twitter_nick: my_twitter_handle
|
25
|
+
language: en
|
26
|
+
explicit: 'no' # 'yes'/'no'/clean
|
27
|
+
license: CC BY 4.0
|
28
|
+
license_url: https://creativecommons.org/licenses/by/4.0/
|
29
|
+
license_image_url: https://i.creativecommons.org/l/by/4.0/88x31.png
|
30
|
+
## Flattr ######################################################################
|
31
|
+
flattr_uid: # Flattr will not be used unless this is set
|
32
|
+
flattr_button: compact # compact | default
|
33
|
+
flattr_mode: auto # auto | manual(default)
|
34
|
+
flattr_popout: 1 # 1 | 0 (show popout when hovering mouse over button)
|
35
|
+
flattr_language: en_GB # available languages - https://api.flattr.com/rest/v2/languages.txt
|
36
|
+
flattr_category: audio # available categories - https://api.flattr.com/rest/v2/categories.txt
|
37
|
+
## Disqus comments #############################################################
|
38
|
+
disqus_shortname: # Disqus will not be used unless this is set
|
39
|
+
disqus_developer: 0 # 1 / 0
|
40
|
+
## Feed links ###########################################################
|
41
|
+
itunes_url: https://itunes.apple.com/at/podcast/myname/id#myid#
|
42
|
+
bitlove_url: https://bitlove.org/myaccount
|
43
|
+
fyyd_url: https://fyyd.de/podcast/myaccount/myid
|
44
|
+
gpodder_url: https://gpodder.net/podcast/mypodcast
|
45
|
+
|
46
|
+
gems: [jekyll-octopod]
|
47
|
+
theme: jekyll-bootflat
|
@@ -55,10 +55,12 @@ module Jekyll
|
|
55
55
|
#
|
56
56
|
# {{ post.audio | audio:"m4a" }} => "my-episode.m4a"
|
57
57
|
def audio(hsh, key = nil)
|
58
|
-
if
|
59
|
-
|
60
|
-
|
61
|
-
|
58
|
+
if !hsh.nil? && hsh.length
|
59
|
+
if key.nil?
|
60
|
+
hsh['mp3'] ? hsh['mp3'] : hsh['m4a'] ? hsh['m4a'] : hsh['ogg'] ? hsh['ogg'] : hsh['opus'] ? hsh['opus'] : hsh.values.first
|
61
|
+
else
|
62
|
+
hsh[key]
|
63
|
+
end
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
@@ -69,7 +71,9 @@ module Jekyll
|
|
69
71
|
#
|
70
72
|
# {{ post.audio | audiotype }} => "my-episode.m4a"
|
71
73
|
def audio_type(hsh)
|
72
|
-
|
74
|
+
if !hsh.nil? && hsh.length
|
75
|
+
hsh['mp3'] ? mime_type('mp3') : hsh['m4a'] ? mime_type('m4a') : hsh['ogg'] ? mime_type('ogg') : mime_type('opus')
|
76
|
+
end
|
73
77
|
end
|
74
78
|
|
75
79
|
|
@@ -20,7 +20,7 @@ module Jekyll
|
|
20
20
|
subtitle: page["subtitle"],
|
21
21
|
url: config['url'] + page["url"],
|
22
22
|
description: page["description"],
|
23
|
-
chaptermarks: page["chapters"].map {|chapter| { start: chapter[0..12], title: chapter[13..255] }}
|
23
|
+
chaptermarks: page["chapters"] ? page["chapters"].map {|chapter| { start: chapter[0..12], title: chapter[13..255] }} : nil
|
24
24
|
}
|
25
25
|
}.to_json
|
26
26
|
end
|
@@ -41,4 +41,4 @@ HTML
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
Liquid::Template.register_tag('podigee_player', Jekyll::PodigeePlayerTag)
|
44
|
+
Liquid::Template.register_tag('podigee_player', Jekyll::PodigeePlayerTag)
|
data/lib/octopod/version.rb
CHANGED
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.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arne Eilermann
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: facets
|
@@ -87,20 +87,6 @@ dependencies:
|
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.4.0
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: bundler
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.15'
|
97
|
-
type: :runtime
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.15'
|
104
90
|
description: Enables you to publish your podcast using the Jekyll static site generator,
|
105
91
|
creating feeds and a reasonably looking website
|
106
92
|
email:
|
@@ -112,6 +98,7 @@ extra_rdoc_files: []
|
|
112
98
|
files:
|
113
99
|
- README.md
|
114
100
|
- Rakefile
|
101
|
+
- assets/_config.yml
|
115
102
|
- assets/_config.yml.sample
|
116
103
|
- assets/_includes/disqus_count.html
|
117
104
|
- assets/_includes/disqus_thread.html
|