jekyll-dash 1.1.3 → 1.2.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: f776eec0f64ceec89f83368c5bb91221c54d57d3de02772859376a27efb6e517
4
- data.tar.gz: d3c78f0ae35a024614cc9d66439d2f7c0bc043ffc8232a5f5340b71cc2f43cba
3
+ metadata.gz: b0cbb8f95447cb008b67a92dc42cbeba16770db4fd174ab5ae110a83bdabe592
4
+ data.tar.gz: a2ab90915fc842164c7a1694deb1b22c76bb3fe5b001f95b6ad3ff72ae8e3a1a
5
5
  SHA512:
6
- metadata.gz: e425b65b29a252c1cb625ffff874849764ffb1625160b28b945e1420680f6897af3cbece96d5e154235999641730026a1e488093627481484d0dc88499b65460
7
- data.tar.gz: 0ccc76c7b354726f606dea84893042159ab9348fb6e3d075e1a3f084ae07a711d401177155e8c2304c00359df20c6c3166b4bacf031154ed6143a62e278c4774
6
+ metadata.gz: 84fb4abd58e1640ffd18e36a62c5901d082e855ceb6284205ab68934390c9c58b55561c47fb234f57a90838f59f4a01b35c72e4f71efc802eca686a1c0c977a6
7
+ data.tar.gz: 7a3dcd1f051f14243b66596816dfffe35f49af55a3f727ad028def5d5cafb32c5d4ce24ca684d7cfe5f1adbfe87abb6b071462fa430dc5fecc20f808afa5afd2
data/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2019 Miguel Gonzalez Sanchez
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  A dark theme for Jekyll, inspired by Dash UI for Atom. 🌒
5
5
 
6
6
  [![Build Status](https://img.shields.io/travis/bitbrain/braingdx/master.svg?logo=travis&style=flat-square)](https://travis-ci.org/bitbrain/jekyll-dash)
7
- [![license](https://img.shields.io/github/license/bitbrain/braingdx.svg?style=flat-square)](LICENSE.MD)
7
+ [![license](https://img.shields.io/github/license/bitbrain/jekyll-dash.svg?style=flat-square)](LICENSE.MD)
8
8
  ---
9
9
  This theme for [Jekyll](https://jekyllrb.com/) has been inspired by [dash-ui](https://atom.io/themes/dash-ui), a dark theme for [Atom](https://atom.io).
10
10
 
@@ -68,6 +68,16 @@ dash:
68
68
  icon: github-square
69
69
  color: purple
70
70
  ```
71
+ ## Using this theme directly on Github Pages
72
+
73
+ Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://help.github.com/en/articles/configuring-jekyll-plugins#default-plugins). You will be able to use this theme on Github Pages but some functionality might not be available, for example displaying tags. In order to use this theme to a full extend, you have to generate the `_site` externally, for example on [TravisCI](https://travis-ci.org).
74
+
75
+ For example, you want to host your own blog on `https://<username>.github.io`. As a result, you require the following repositories:
76
+
77
+ * `blog` - contains the actual Jekyll sources ([see example](https://github.com/bitbrain/blog))
78
+ * `<username>.github.io` - contains generated webpage, pushed automatically via TravisCI ([see example](https://github.com/bitbrain/bitbrain.github.io))
79
+
80
+ You are not required to do this, but keep in mind that some functionality might not be available when using the Jekyll generator on Github directly!
71
81
 
72
82
  ## Additional Features
73
83
 
@@ -96,4 +106,4 @@ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-d
96
106
 
97
107
  ## License
98
108
 
99
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
109
+ The theme is available as open source under the terms of the [Apache License 2.0](https://opensource.org/licenses/Apache-2.0).
@@ -2,9 +2,9 @@
2
2
  {% if paginator.total_pages > 1 %}
3
3
  <div class="pagination">
4
4
  {% if paginator.previous_page %}
5
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">< previous</a>
5
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="fas fa-chevron-left"></i></a>
6
6
  {% else %}
7
- <span>< previous</span>
7
+ <span><i class="fas fa-chevron-left"></i></span>
8
8
  {% endif %}
9
9
 
10
10
  {% for page in (1..paginator.total_pages) %}
@@ -18,9 +18,9 @@
18
18
  {% endfor %}
19
19
 
20
20
  {% if paginator.next_page %}
21
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"> next ></a>
21
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="fas fa-chevron-right"></i></a>
22
22
  {% else %}
23
- <span>next ></span>
23
+ <span><i class="fas fa-chevron-right"></i></span>
24
24
  {% endif %}
25
25
  </div>
26
26
  {% endif %}
@@ -1,7 +1,8 @@
1
1
 
2
2
  {% if site.plugins contains "jekyll/tagging" %}
3
- <h2>All tags</h2>
4
- <div class="tag-cloud">
5
- {{ site | tag_cloud }}
6
- </div>
3
+ {% assign size = site | tag_cloud | size %}
4
+ {% if size != 0 %}
5
+ <h2>all tags</h2>
6
+ <div class="tag-cloud">{{ site | tag_cloud }}</div>
7
+ {% endif %}
7
8
  {% endif %}
data/_layouts/home.html CHANGED
@@ -4,7 +4,7 @@ layout: default
4
4
  {% include author.html %}
5
5
  {% assign posts_count = paginator.posts | size %}
6
6
  {% if posts_count > 0 %}
7
- <h1>Recent blog articles</h1>
7
+ <h1>recent articles</h1>
8
8
  <div class="post-links">
9
9
  {% for post in paginator.posts %}
10
10
  <div class="post-link-wrapper">
@@ -32,5 +32,5 @@ layout: default
32
32
 
33
33
  {% include tagcloud.html %}
34
34
  {% else %}
35
- <div>No posts yet.</div>
35
+ <h2>no posts yet.</h2>
36
36
  {% endif %}
data/_layouts/post.html CHANGED
@@ -24,8 +24,10 @@ layout: default
24
24
  </div>
25
25
  {% endif %}
26
26
 
27
+ {% assign size = site.related_posts | size %}
28
+ {% if size != 0 %}
27
29
  <div class="related">
28
- <h2>Related Posts</h2>
30
+ <h2>related posts</h2>
29
31
  <ul class="related-posts">
30
32
  {% for post in site.related_posts limit:3 %}
31
33
  <li>
@@ -38,4 +40,5 @@ layout: default
38
40
  {% endfor %}
39
41
  </ul>
40
42
  </div>
43
+ {% endif %}
41
44
  {% include tagcloud.html %}
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
  {% include author.html %}
5
- <h1 class="post-title">Articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
5
+ <h1 class="post-title">articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
6
6
  <div class="post-links">
7
7
  {% for post in site.posts %}
8
8
  {% for tag in post.tags %}
@@ -5,3 +5,4 @@ $icon-chevron-right: "\f054";
5
5
  $icon-check: "\f00c";
6
6
  $icon-minus: "\f068";
7
7
  $icon-flask: "\f0c3";
8
+ $icon-tag: "\f02b";
@@ -231,6 +231,15 @@
231
231
  color: lighten($color-green, 20%);
232
232
  background-color: lighten($color-background-dark, 5%);
233
233
  }
234
+
235
+ & > svg {
236
+ margin-right: 0.4em;
237
+ }
238
+
239
+ &:before {
240
+ content: $icon-tag;
241
+ @include font-awesome-icon;
242
+ }
234
243
  }
235
244
 
236
245
  .post-tags {
@@ -250,7 +259,7 @@
250
259
 
251
260
  .pagination {
252
261
  font-size: $post-link-font-size;
253
- margin: 2em 0;
262
+ margin: 1em 0;
254
263
  & > a, & > span {
255
264
  font-weight: normal;
256
265
  display: inline-block;
@@ -263,6 +272,10 @@
263
272
  &:hover {
264
273
  text-decoration: none;
265
274
  }
275
+
276
+ svg {
277
+ padding-left: 0.1em;
278
+ }
266
279
  }
267
280
 
268
281
  & > a {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-dash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Gonzalez Sanchez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-11 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -102,7 +102,6 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - LICENSE
105
- - LICENSE.txt
106
105
  - README.md
107
106
  - _includes/author.html
108
107
  - _includes/disqus.html
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 Miguel Gonzalez Sanchez
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.