jekyll-octopod 0.8.1 → 0.8.2
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/assets/_config.yml.sample +1 -0
- data/assets/_includes/post.html +6 -1
- data/assets/_layouts/feed.xml +6 -1
- data/assets/_layouts/player_index.html +6 -1
- data/lib/jekyll/podigee_player_tag.rb +2 -1
- data/lib/octopod/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b506ff868c4d1e7e398369f40c07e3ce6de3f55
|
4
|
+
data.tar.gz: 93736623d7ac0c3b6c08c27b01982137467d0bcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3629f7e8c68dba7840c00c7a76de6c35814103dd4e21812a5fe86d5382d59d26e29289d7337a9e4cf977f05f95303de8c9676d246fd20c1362aa3a7c804dead
|
7
|
+
data.tar.gz: 575b7f11bc10588975be120ebf7ac38a488766ba0c4ca80f14b488f9c56a3af1ef1d9f771f822fa19deff21ca7002d2e3d54f8bcc082a918486611daf4874c8c
|
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
|
data/assets/_config.yml.sample
CHANGED
@@ -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
|
data/assets/_includes/post.html
CHANGED
@@ -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="{{
|
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>
|
data/assets/_layouts/feed.xml
CHANGED
@@ -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 =
|
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="{{
|
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
|
-
|
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" },
|
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.8.
|
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-
|
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.
|
165
|
+
rubygems_version: 2.5.2
|
165
166
|
signing_key:
|
166
167
|
specification_version: 4
|
167
168
|
summary: Podcasting Publishing Extension for Jekyll
|