jekyll-octopod 0.15.1 → 0.16.1

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: 1e97c76791da4caf394541907199b2009985f42854b547c8644321d057f1ca36
4
+ data.tar.gz: 0e0b22eba05771002edc86a2894dbae32fa67ad1bda9d9b348b601d5c794b006
5
5
  SHA512:
6
- metadata.gz: 87eee23c1648e498fdbaccfedd22a0ab2bca5aa1727d6c27e51899d8a3578bf0904f6a1d55f3efbed1e45ab6d66c78c1302ba2b4ffc7711954a00b79d464d34e
7
- data.tar.gz: 37bc083eb831aa81373b4632ec0c187d3bde77432d1c3208180da5286d0f1e8e56b7d834b89d352eabe23be0c70480020a1cb1cac48552c637ac5a189e2fdb5f
6
+ metadata.gz: b5bef749f76e82144d8b4755339710ff8a87392e8bfea9f0c30899c7fbc67c22913c6f4b100a0ad2a05b91f68a2817d1759ca7a52c169c1370dd0e123e248601
7
+ data.tar.gz: 65125e024416c0d9218ca8543fc4c641fd1dbefa1af2d9b2f9ba67a3a7f875825ef08be5adf5c711c2d47ed2c034843fe709d2714e1da792e5661ce5f285ebc3
@@ -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).
@@ -21,33 +21,51 @@ h1 small, h2 small, h3 small {
21
21
  font-size: 45%;
22
22
  }
23
23
 
24
- // Theme for the Swiss-Sided Dice podcast, red and white based on the Swiss flag - commented out for now, until a better solution can be found
25
-
26
- /*
27
- // Bulma's navbar reads its colors from CSS custom properties scoped on .navbar,
28
- // so a single block covers the background plus the hue/saturation/lightness
29
- // triple it derives hover, active and dropdown shading from - no separate
30
- // hover/toggle overrides needed the way Bootstrap required.
24
+ // Example: give your site its own brand color instead of Bulma's default navbar. Bulma's navbar
25
+ // reads its colors from CSS custom properties scoped on .navbar, so a single block covers the
26
+ // background plus the hue/saturation/lightness triple it derives hover, active and dropdown
27
+ // shading from. Swap the values below for your own color and delete this comment once you've
28
+ // made it yours.
31
29
  .navbar {
32
- --bulma-navbar-background-color: #E11A27;
33
- --bulma-navbar-h: 356deg;
34
- --bulma-navbar-s: 87%;
35
- --bulma-navbar-l: 45%;
36
- --bulma-navbar-item-color: #FFF;
37
- --bulma-navbar-burger-color: #FFF;
30
+ --bulma-navbar-background-color: #48CFAD;
31
+ --bulma-navbar-h: 166deg;
32
+ --bulma-navbar-s: 48%;
33
+ --bulma-navbar-l: 55%;
34
+
35
+ // Without this, Bulma still colors the *currently active* nav item (a.navbar-item.is-active)
36
+ // from its own global --bulma-link-h/-s/-l default (a blue unrelated to the values above) instead
37
+ // of from this navbar's own hue/saturation/lightness - these four properties are what it actually
38
+ // reads for that state, so they need to be pointed at our own values too.
39
+ --bulma-navbar-item-selected-h: var(--bulma-navbar-h);
40
+ --bulma-navbar-item-selected-s: var(--bulma-navbar-s);
41
+ --bulma-navbar-item-selected-l: var(--bulma-navbar-l);
42
+ --bulma-navbar-item-selected-background-l: 40%;
43
+ --bulma-navbar-item-selected-color-l: 97%;
44
+ }
45
+
46
+ // The resting nav items' text color is Bulma's own --bulma-text-l, which is intentionally light
47
+ // in dark mode (for contrast against the page's now-dark background) - but our navbar's own
48
+ // background above is a literal color, so it doesn't darken with the rest of the page. Without
49
+ // this, dark mode ends up with near-white text on a background that's still light-mode teal,
50
+ // unreadable. Darkening the same hue/saturation here keeps the brand color recognizable while
51
+ // giving Bulma's light dark-mode text something dark enough to actually contrast against.
52
+ @media (prefers-color-scheme: dark) {
53
+ .navbar {
54
+ --bulma-navbar-background-color: #1B4B40;
55
+ --bulma-navbar-l: 20%;
56
+ }
38
57
  }
39
58
 
40
- // Links and buttons in the website are a dark red for best contrast, but get lightened on hover for feedback
59
+ // Links and buttons in the website match the navbar, but get lightened on hover for feedback
41
60
  a {
42
- color: #CF000F;
61
+ color: #48CFAD;
43
62
  }
44
63
  a:hover {
45
- color: #EF3743;
64
+ color: #7BD1BD;
46
65
  }
47
66
  .button.is-primary {
48
- background-color: #CF000F;
67
+ background-color: #48CFAD;
49
68
  }
50
69
  .button.is-primary:hover, .button.is-primary:focus {
51
- background-color: #EF3743;
70
+ background-color: #7BD1BD;
52
71
  }
53
- */
@@ -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,7 +2,7 @@ module Jekyll
2
2
  class Octopod
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
- MINOR = 15
5
+ MINOR = 16
6
6
  TINY = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
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.1
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>