jekyll-octopod 0.15.1 → 0.16.0

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
  SHA256:
3
- metadata.gz: e9584204769606315e098c8fe2f9fccc4862173e046cbf625928c394bf35e862
4
- data.tar.gz: 577ff86f71436831f0bc4d356aee7f345855eb6a001e1589bd837bebe5653440
3
+ metadata.gz: 8db2f57d31d171f21e326e3ac92bf8642f958db87f38c5bd8d40375b4b839671
4
+ data.tar.gz: 37fdf23887400278251eec91607e70f88e19916f32cb4dd62e9a7bfc36f8e4bd
5
5
  SHA512:
6
- metadata.gz: 87eee23c1648e498fdbaccfedd22a0ab2bca5aa1727d6c27e51899d8a3578bf0904f6a1d55f3efbed1e45ab6d66c78c1302ba2b4ffc7711954a00b79d464d34e
7
- data.tar.gz: 37bc083eb831aa81373b4632ec0c187d3bde77432d1c3208180da5286d0f1e8e56b7d834b89d352eabe23be0c70480020a1cb1cac48552c637ac5a189e2fdb5f
6
+ metadata.gz: 89105dc41c40fc03e3ed92be9b542f322d9e17214fdc9eb00b6f664833a7f39c01a60f560256008affa1aab3193be8d2834e95e1758b9c58487acde8dcd223e4
7
+ data.tar.gz: b512219be5552762b4fe45364df66eb949a7e3a6d47d840c1230376191e60e97fa8532e4250aafd6751242875dfc9e67128b18d19ee0f846327976ac6d7aca58
@@ -26,8 +26,8 @@ ssh_port: 22
26
26
  document_root: /path/to/your/htdocs/
27
27
  rsync_delete: true
28
28
 
29
- ### Twiter config, optional
30
- twitter_nick: my_twitter_handle # Twitter will not be used unless this is set
29
+ ### Fediverse config, optional
30
+ fediverse_url: https://podcasts.social/@my_account # Fediverse links will not be shown unless this is set
31
31
 
32
32
  language: en
33
33
  explicit: "no" # "yes" | "no" | clean
@@ -18,11 +18,6 @@
18
18
  {% endfor %}
19
19
  {% endif %}
20
20
  <hr>
21
- <a href="https://twitter.com/share"
22
- class="button is-primary is-small"
23
- data-url="{{ site.url }}{{post.url }}"
24
- data-text="{{ post.title }}">
25
- <i class="lab la-twitter"></i> Tweet</a>
26
21
  {% unless page.url == '/index.html' %}{% include disqus_thread.html %}{% endunless %}
27
22
  {% unless page.url == '/index.html' %}{% include isso_thread.html %}{% endunless %}
28
23
  <hr>
@@ -98,10 +98,9 @@
98
98
 
99
99
  <hr/>
100
100
 
101
- {% if site.twitter_nick %}
102
- <a href="https://twitter.com/{{ site.twitter_nick }}"
103
- class="button is-primary is-small"
104
- data-show-count="false">
105
- <i class="lab la-twitter"></i>Follow @{{ site.twitter_nick }}
101
+ {% if site.fediverse_url %}
102
+ <a rel="me" href="{{ site.fediverse_url }}"
103
+ class="button is-primary is-small">
104
+ <i class="lab la-mastodon"></i>Follow {{ site.fediverse_url | fediverse_handle }}
106
105
  </a>
107
106
  {% endif %}
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: with_twitter_card
2
+ layout: default
3
3
  ---
4
4
  {% for post in site.posts %}
5
5
  {% if post.url == page.url %}
@@ -30,4 +30,4 @@ It is only necessary for hosting remotely.
30
30
  ## Show Notes and Links
31
31
 
32
32
  * Well this is the place for the Show Notes.
33
- * Send Feedback either in the [Github Repo](https://github.com/haslinger/jekyll-octopod) or at the Twitter account [@AuaUffCode](http://twitter.com/@AuaUffCode).
33
+ * Send Feedback either in the [Github Repo](https://github.com/haslinger/jekyll-octopod) or at the fediverse account [@informatom@fosstodon.org](https://fosstodon.org/@informatom).
@@ -211,6 +211,17 @@ module Jekyll
211
211
  URI.parse(url).host
212
212
  end
213
213
 
214
+ # Returns a displayable @user@instance handle from a fediverse profile
215
+ # url (e.g. a Mastodon profile), for use next to a "Follow" link.
216
+ #
217
+ # {{ 'https://podcasts.social/@AuaUffCode' | fediverse_handle }}
218
+ # => "@AuaUffCode@podcasts.social"
219
+ def fediverse_handle(url)
220
+ uri = URI.parse(url)
221
+ user = uri.path.split('/').last.sub(/\A@/, '')
222
+ "@#{user}@#{uri.host}"
223
+ end
224
+
214
225
  # Generates the config for disqus integration
215
226
  # If a page object is given, it generates the config variables only for this
216
227
  # page. Otherwise it generate only the global config variables.
@@ -2,8 +2,8 @@ module Jekyll
2
2
  class Octopod
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
- MINOR = 15
6
- TINY = 1
5
+ MINOR = 16
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.15.1
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Eilermann
@@ -113,14 +113,12 @@ files:
113
113
  - assets/_includes/post_header.html
114
114
  - assets/_includes/post_line.html
115
115
  - assets/_includes/sidebar.html
116
- - assets/_includes/tweet_us.html
117
116
  - assets/_layouts/default.html
118
117
  - assets/_layouts/feed.xml
119
118
  - assets/_layouts/jsonfeed.json
120
119
  - assets/_layouts/page.html
121
120
  - assets/_layouts/player_index.html
122
121
  - assets/_layouts/post.html
123
- - assets/_layouts/with_twitter_card.html
124
122
  - assets/_posts/2016-03-22-episode0.md
125
123
  - assets/_sass/_overrides.scss
126
124
  - assets/apple-touch-icon-precomposed.png
@@ -1,3 +0,0 @@
1
- <a href="https://twitter.com/share"
2
- class="twitter-share-button"
3
- data-text="@{{ site.twitter_nick }}}">Tweet at @{{ site.twitter_nick }}</a>
@@ -1,94 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ site.language }}">
3
- <head>
4
- <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
- <title>{{ site.title }} - {{ page.title | otherwise:site.subtitle }}</title>
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
-
9
- {% if site.description %}<meta name="description" content="{{ site.description | markdownify | strip_html }}">{% endif %}
10
- {% if site.author %}<meta name="author" content="{{ site.author }}">{% endif %}
11
-
12
- <link rel="alternate" type="application/atom+xml" href="{{ site.url }}/general_feed.xml" title="General Site Atom Feed (No Podcast Metadata!)" />
13
- {{ site | episode_feeds_html }}
14
-
15
- <link href='/assets/css/ubuntu.css' rel='stylesheet' type='text/css'>
16
- <link rel="stylesheet" type="text/css" href="/assets/css/main.css">
17
-
18
- <script src="/assets/js/dropdown.js"></script>
19
-
20
- <meta name="twitter:card" content="player" />
21
- <meta name="twitter:site" content="@{{ site.twitter_nick }}" />
22
- <meta name="twitter:title" content="{{ page.title }}" />
23
- <meta name="twitter:description" content="{{ page.subtitle }}" />
24
- <meta name="twitter:image" content="{{site.url}}{{ page | image_with_fallback }}" />
25
- <meta name="twitter:player" content="{{ site.url }}/players/{{ page.slug }}" />
26
- <meta name="twitter:player:width" content="480" />
27
- <meta name="twitter:player:height" content="480" />
28
- <meta name="twitter:player:stream" content="{{ site | download_url_with_fallback }}/{{ page.audio | audio }}" />
29
- <meta name="twitter:player:stream:content_type" content="{{ page.audio | audio_type }}" />
30
-
31
- {% if site.disqus_shortname %}
32
- <script>
33
- {{ site | disqus_config }}
34
- </script>
35
- {% endif %}
36
- </head>
37
-
38
- <body>
39
- <nav class="navbar" role="navigation" aria-label="main navigation">
40
- <div class="navbar-brand">
41
- <a class="navbar-item" href="{{ site.url }}">{{ site.title }}</a>
42
-
43
- <a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
44
- <span aria-hidden="true"></span>
45
- <span aria-hidden="true"></span>
46
- <span aria-hidden="true"></span>
47
- </a>
48
- </div>
49
-
50
- <div class="navbar-menu" id="navMenu">
51
- <div class="navbar-start">
52
- {{ site | navigation_list:page }}
53
- </div>
54
-
55
- <div class="navbar-end">
56
- <div class="navbar-item">
57
- <form class="field has-addons" action="https://google.com/search" method="get" role="search">
58
- <div class="control">
59
- <input type="text" class="input" name="q" placeholder="search item" value="">
60
- <input type="hidden" name="q" value="site:{{ site.url | host_from_url }}" />
61
- </div>
62
- <div class="control">
63
- <button type="submit" class="button">Search</button>
64
- </div>
65
- </form>
66
- </div>
67
- </div>
68
- </div>
69
- </nav>
70
-
71
- <section class="section">
72
- <div class="container">
73
- <div class="columns">
74
- <div class="column is-8">
75
- <div class="content">
76
- {{ content }}
77
- </div>
78
- </div>
79
- <div id="sidebar" class="column is-4">
80
- <div class="box content">
81
- {% include sidebar.html %}
82
- </div>
83
- </div>
84
- </div>
85
- <div id="footer" class="has-text-right">
86
- <small>
87
- Powered by <a href="https://jekyll-octopod.github.io/">jekyll-octopod</a>
88
- and <a href="http://jekyllrb.com/">Jekyll</a>.
89
- </small>
90
- </div>
91
- </div>
92
- </section>
93
- </body>
94
- </html>