jekyll-octopod 0.8.1 → 0.8.2

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: 44b604eda2427b0266c52dd10ec30747b602164c
4
- data.tar.gz: ccd34c35b74a63ae4c0a57d6d28a0e5429d88066
3
+ metadata.gz: 6b506ff868c4d1e7e398369f40c07e3ce6de3f55
4
+ data.tar.gz: 93736623d7ac0c3b6c08c27b01982137467d0bcf
5
5
  SHA512:
6
- metadata.gz: ac7d9fa8c945ed69ba5e5b6bf962a787fd6bd2a0ad448d196d7eb6a8ebff20d458611e5dd7c0cf43a159de050b9c88de8f25b7d289c3d37a0f3996a468484b0c
7
- data.tar.gz: 18bc264391607b0a6fb9f48d4279d6b7fedd40ca1742eb2c632d7aa3548990f24df45718c8c94faecf96138446e3fdc52855a76bf82a70729d6f73c8df5c6ecf
6
+ metadata.gz: f3629f7e8c68dba7840c00c7a76de6c35814103dd4e21812a5fe86d5382d59d26e29289d7337a9e4cf977f05f95303de8c9676d246fd20c1362aa3a7c804dead
7
+ data.tar.gz: 575b7f11bc10588975be120ebf7ac38a488766ba0c4ca80f14b488f9c56a3af1ef1d9f771f822fa19deff21ca7002d2e3d54f8bcc082a918486611daf4874c8c
@@ -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
@@ -2,6 +2,7 @@
2
2
  title: Octopod
3
3
  # You should configure this ####################################################
4
4
  url: http://localhost:4000
5
+ download_url: "http://your.fancy.hosting/episodes"
5
6
  subtitle: Static Site Podcast Publishing for Geeks
6
7
  description: My super duper cool podcast.
7
8
  author: Uncle Octopod
@@ -4,10 +4,15 @@
4
4
  {% endif %}
5
5
  <section id="{{ post.id | sha1:8 }}" class="active">
6
6
  {% include post_header.html %}
7
+ {% if site.download_url == "" or site.download_url == nil %}
8
+ {% assign download_url = site.url | append: '/episodes' %}
9
+ {% else %}
10
+ {% assign download_url = site.download_url %}
11
+ {% endif %}
7
12
  {{ post.content }}
8
13
  {% if post.audio %}
9
14
  {% for file in post.audio %}
10
- <a class="btn btn-primary" href="{{ site.url }}/episodes/{{ file.last }}">Download .{{ file.first }} ({{ file.last | file_size:'./' | string_of_size }})</a>
15
+ <a class="btn btn-primary" href="{{ download_url }}/{{ file.last }}">Download .{{ file.first }} ({{ file.last | file_size:'./' | string_of_size }})</a>
11
16
  {% endfor %}
12
17
  {% endif %}
13
18
  <hr>
@@ -46,6 +46,11 @@ layout: null
46
46
  <itunes:category text="{{ category }}">
47
47
  {% endfor %}
48
48
  </itunes:category>
49
+ {% if site.download_url == "" or site.download_url == nil %}
50
+ {% assign download_url = site.url | append: '/episodes' %}
51
+ {% else %}
52
+ {% assign download_url = site.download_url %}
53
+ {% endif %}
49
54
  {% for post in site.posts %}
50
55
  {% if post.audio[page.format] %}
51
56
  {% assign check = forloop.index0 | divided_by:site.episodes_per_feed_page | plus: 1 %}
@@ -61,7 +66,7 @@ layout: null
61
66
  <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
62
67
  <description><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></description>
63
68
  <content:encoded><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></content:encoded>
64
- {% assign url = site.url | append: '/episodes/' | append: post.audio[page.format] %}
69
+ {% assign url = download_url | append: '/' | append: post.audio[page.format] %}
65
70
  <enclosure url="{{ url }}" length="{{ post.audio | audio:page.format | file_size }}" type="{{ page.format | mime_type }}" guid="{{ url | sha1:32}}" />
66
71
  <itunes:keywords>{{ post.tags }}</itunes:keywords>
67
72
  <itunes:subtitle>{{ post.subtitle }}</itunes:subtitle>
@@ -18,8 +18,13 @@ layout: null
18
18
  <meta property="og:description" content="{{ site.description }}"/>
19
19
  <meta property="og:image" content="{{ site.url }}/img/logo-360x360.png"/>
20
20
 
21
+ {% if site.download_url == "" or site.download_url == nil %}
22
+ {% assign download_url = site.url | append: '/episodes' %}
23
+ {% else %}
24
+ {% assign download_url = site.download_url %}
25
+ {% endif %}
21
26
  {% for feed in site['episode_feed_formats'] %}
22
- <meta property="og:audio" content="{{ site.url }}/episodes/{{ page['audio'][feed] }}"/>
27
+ <meta property="og:audio" content="{{ download_url }}/{{ page['audio'][feed] }}"/>
23
28
  <meta property="og:audio:type" content="audio/{{ feed }}"/>
24
29
  {% endfor %}
25
30
  </head>
@@ -5,7 +5,8 @@ module Jekyll
5
5
  page = context.registers[:page]
6
6
 
7
7
  audio = {}
8
- page["audio"].each { |key, value| audio[key] = config["url"] + "/episodes/" + value}
8
+ download_url = config["download_url"] || config["url"] + "/episodes"
9
+ page["audio"].each { |key, value| audio[key] = download_url + "/" + value}
9
10
 
10
11
  { options: { theme: "default",
11
12
  startPanel: "ChapterMarks" },
@@ -3,7 +3,7 @@ module Jekyll
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- TINY = 1
6
+ TINY = 2
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.1
4
+ version: 0.8.2
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-02-01 00:00:00.000000000 Z
12
+ date: 2017-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -70,6 +70,7 @@ extra_rdoc_files: []
70
70
  files:
71
71
  - README.md
72
72
  - Rakefile
73
+ - assets/_config.yml
73
74
  - assets/_config.yml.sample
74
75
  - assets/_includes/disqus_count.html
75
76
  - assets/_includes/disqus_thread.html
@@ -161,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
162
  version: '0'
162
163
  requirements: []
163
164
  rubyforge_project: jekyll-
164
- rubygems_version: 2.5.1
165
+ rubygems_version: 2.5.2
165
166
  signing_key:
166
167
  specification_version: 4
167
168
  summary: Podcasting Publishing Extension for Jekyll