jekyll-octopod 0.8.9 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de0117dd4123fa3c95600e4a602dc99400e98b33
4
- data.tar.gz: 9b4b5bd620df8cd97d2cf5a031fbe17d1d7e2064
3
+ metadata.gz: 565f44c3775b867f1c81061a50c6a9bb5b71c850
4
+ data.tar.gz: 5769450b2d16bd08843148872764556dd65c7dde
5
5
  SHA512:
6
- metadata.gz: 5199e2d8eddced96337ef37b0540564a3a4fffac1995b299584775f380664bc8734e2fe43392e6944533936f79b02eb94f1a256bc911da3cdf7119ffbca1120a
7
- data.tar.gz: 723366ab0a56479f6520ec1f361e25530c23b98d1cef338f56c338e6fb528bf464b8d06088ad47ad7a22e900bc9881769ab73bccc95376be8dc16c4f2685318f
6
+ metadata.gz: 5fd64395c0345b0cfe770d4947b272e4cc7f88d2395ca7e866222fed61864bc1d3e806b17768e2004f467efc348543282386310d02fb475b68ce0ce81124b763
7
+ data.tar.gz: cf54d9bb95329e9a812f59adaa1c3f805b5079cf3e513e482993b6d3fc537f788a1238a547ab3b9737c4eafeadef3cc85431124c4eb24fdee0cb2efa11fac91e
@@ -6,6 +6,7 @@ download_url: "http://your.fancy.hosting/episodes"
6
6
  subtitle: Static Site Podcast Publishing for Geeks
7
7
  description: My super duper cool podcast.
8
8
  author: Uncle Octopod
9
+ author_url: "http://your.fancy.hosting/" # This is the URL of a site owned by the author (s. https://jsonfeed.org/version/1)
9
10
  email: octopod@example.com
10
11
  keywords: [octopod, podcast, magic]
11
12
  itunes_categories: [Technology]
@@ -48,10 +48,19 @@
48
48
 
49
49
  <ol type="i">
50
50
  {% for feed in site['episode_feed_formats'] %}
51
- <li><a href="{{ site['url']}}/episodes.{{ feed }}.rss"><i class="fa fa-rss"></i> {{ feed }}-Feed</a></li>
51
+ <li><a href="{{ site['url']}}/episodes.{{ feed }}.rss"><i class="fa fa-rss"></i> {{ feed }}-RSS-Feed</a></li>
52
52
  {% endfor %}
53
53
  </ol>
54
54
 
55
+ <h4>JSON-Feeds</h4>
56
+
57
+ <ol type="i">
58
+ {% for jsonfeed in site['json_feed_formats'] %}
59
+ <li><a href="{{ site['url']}}/feed.{{ jsonfeed }}.json"><i class="fa fa-rss-square"></i> {{ jsonfeed }}-JSON-Feed</a></li>
60
+ {% endfor %}
61
+ </ol>
62
+
63
+
55
64
 
56
65
  <h4>Directories</h4>
57
66
 
@@ -0,0 +1,48 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ {%- if site.download_url == "" or site.download_url == nil -%}
5
+ {%- assign download_url = site.url | append: '/episodes' -%}
6
+ {%- else -%}
7
+ {%- assign download_url = site.download_url -%}
8
+ {%- endif -%}
9
+
10
+ {"version": "https://jsonfeed.org/version/1",
11
+ "title": "{{ site.title | xml_escape }}",
12
+ "home_page_url": "{{ "/" | absolute_url }}",
13
+ "feed_url": "{{ "/feed.json" | absolute_url }}",
14
+ "description": {{ site.description | jsonify }},
15
+ "user_comment": {{ site.description | jsonify }},
16
+ "icon": "{{ "/apple-touch-icon-precomposed.png" | absolute_url }}",
17
+ "favicon": "{{ "/favicon.ico" | absolute_url }}",
18
+ "expired": false,
19
+ "author": {
20
+ "name": {{ site.author | jsonify }},
21
+ "url": {{ site.author_url | jsonify }}
22
+ },
23
+ "items": [
24
+ {%- for post in site.posts limit:36 -%}
25
+ {% assign url = download_url | append: '/' | append: post.audio[page.format] %}
26
+ {"id": "{{ post.url | absolute_url | sha1 }}",
27
+ "title": {{ post.title | jsonify }},
28
+ "summary": "",
29
+ "content_text": {{ post.content | strip_html | strip_newlines | jsonify }},
30
+ "content_html": {{ post.content | strip_newlines | jsonify }},
31
+ "url": "{{ post.url | absolute_url }}",
32
+ {%- if post.tags.size > 0 -%}"tags": {{ post.tags | jsonify }}, {%- endif -%}
33
+ {% if post.audio.size > 1 %}
34
+ "attachments": [
35
+ {"url": "{{ url }}",
36
+ "mime_type": "audio/mpeg",
37
+ "size_in_bytes": "{{ post.audio | audio:mp3 | file_size }}"
38
+ }
39
+ ],{% endif %}
40
+ "date_published": "{{ post.date | date_to_xmlschema }}",
41
+ "date_modified": "{{ post.date | date_to_xmlschema }}",
42
+ "author": {
43
+ "name": "{{ post.author }}"
44
+ }
45
+ }{% if forloop.last == false %},{% endif %}
46
+ {%- endfor -%}
47
+ ]
48
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: jsonfeed
3
+ format: m4a
4
+ ---
5
+ {{ content }}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: jsonfeed
3
+ format: mp3
4
+ ---
5
+ {{ content }}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: jsonfeed
3
+ format: ogg
4
+ ---
5
+ {{ content }}
@@ -5,6 +5,10 @@ module Jekyll
5
5
  site.config.update(
6
6
  'episode_feed_formats' => feeds.map { |f| f.match(/episodes\.(\w{3,4})\.rss/)[1] }
7
7
  )
8
+ jsonfeeds = Dir["feed.{???,????}.json"]
9
+ site.config.update(
10
+ 'json_feed_formats' => jsonfeeds.map { |f| f.match(/feed\.(\w{3,4})\.json/)[1] }
11
+ )
8
12
  end
9
13
  end
10
14
  end
@@ -2,8 +2,8 @@ module Jekyll
2
2
  class Octopod
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
- MINOR = 8
6
- TINY = 9
5
+ MINOR = 9
6
+ TINY = 0
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.8.9
4
+ version: 0.9.0
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: 2017-04-07 00:00:00.000000000 Z
12
+ date: 2017-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: facets
@@ -98,7 +98,6 @@ extra_rdoc_files: []
98
98
  files:
99
99
  - README.md
100
100
  - Rakefile
101
- - assets/_config.yml
102
101
  - assets/_config.yml.sample
103
102
  - assets/_includes/disqus_count.html
104
103
  - assets/_includes/disqus_thread.html
@@ -111,6 +110,7 @@ files:
111
110
  - assets/_includes/tweet_us.html
112
111
  - assets/_layouts/default.html
113
112
  - assets/_layouts/feed.xml
113
+ - assets/_layouts/jsonfeed.json
114
114
  - assets/_layouts/page.html
115
115
  - assets/_layouts/player_index.html
116
116
  - assets/_layouts/post.html
@@ -124,6 +124,9 @@ files:
124
124
  - assets/episodes/episode0.mp3
125
125
  - assets/episodes/episode0.ogg
126
126
  - assets/favicon.ico
127
+ - assets/feed.m4a.json
128
+ - assets/feed.mp3.json
129
+ - assets/feed.ogg.json
127
130
  - assets/general_feed.xml
128
131
  - assets/img/favicon.ico
129
132
  - assets/img/logo-360x360.png
@@ -191,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
194
  version: '0'
192
195
  requirements: []
193
196
  rubyforge_project: jekyll-
194
- rubygems_version: 2.6.8
197
+ rubygems_version: 2.5.1
195
198
  signing_key:
196
199
  specification_version: 4
197
200
  summary: Podcasting Publishing Extension for Jekyll
data/assets/_config.yml DELETED
@@ -1,47 +0,0 @@
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