jekyll-dash 1.3.2 → 1.3.6

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: fe0c9ee6c1f6cf2368e75ba699101277cdbcb538e594232b12ed43ec3446e980
4
- data.tar.gz: 21d1306b0105ca7e0258752375f4ccec485d216e811ab6caa3a7e10c74e43445
3
+ metadata.gz: 0d52edfa16aec22189b6780cc9ded7a123ef472e0dd1dd61714b23e7714333f8
4
+ data.tar.gz: 0c6a007c9c16ba1c0525b0b85b12de4886144f3f884d2cbea285e1ca783e25ec
5
5
  SHA512:
6
- metadata.gz: fbaf6beaf2e106af7128a81e0a935d33b1ddea0f7abf7a50d82cd54561b80761f56e92a08ceab8dfc119df69ca8d0e9d471380ed8bdb467e3d8aff68980c0939
7
- data.tar.gz: eac1c1b0ee03eefa1010e7f41d87cae0482812b7d9d878f659828936da6c61ec6a57a648dbfbe5e0316492697e3655f1c648c7c5fb83ce7b8b635d3b923420b9
6
+ metadata.gz: a00a0ddb03cae89fa416c0d7a546cc0178f4f6412885b703455c04d3bafa09a93098ab495d1fa6513e1e2caff25b680117d8a0d408f9ed885ed1da8f8203c29b
7
+ data.tar.gz: dc076995ea2ee49c5e8e72a3b5320e06903255ddebc46fa6bbca9e2fd333d2ae8bf73020f309949f530a6940184821c9799509d767e5fcb6b42ac08ac22f7143
data/README.md CHANGED
@@ -5,6 +5,8 @@ A dark and light 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
7
  [![license](https://img.shields.io/github/license/bitbrain/jekyll-dash.svg?style=flat-square)](LICENSE.MD)
8
+ [![Gem](https://img.shields.io/gem/v/jekyll-dash.svg?style=flat)](http://rubygems.org/gems/jekyll-dash "View this project in Rubygems")
9
+ [![Downloads](https://ruby-gem-downloads-badge.herokuapp.com/jekyll-dash)](https://rubygems.org/gems/jekyll-dash "Number of Gem downloads")
8
10
  ---
9
11
  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
12
 
@@ -14,8 +16,16 @@ This theme for [Jekyll](https://jekyllrb.com/) has been inspired by [dash-ui](ht
14
16
 
15
17
  Add this line to your Jekyll site's `Gemfile`:
16
18
 
19
+ For **Jekyll 3**:
17
20
  ```ruby
18
- gem "jekyll-dash"
21
+ gem 'jekyll-dash', '~> 1.0.0'
22
+ ```
23
+
24
+ > Keep in mind: Github pages generation only supports Jekyll 3.8 right now.
25
+
26
+ For **Jekyll 4**:
27
+ ```ruby
28
+ gem 'jekyll-dash', '~> 2.0.0'
19
29
  ```
20
30
 
21
31
  And add this line to your Jekyll site's `_config.yml`:
@@ -30,7 +40,7 @@ And then execute:
30
40
 
31
41
  Or install it yourself as:
32
42
 
33
- $ gem install jekyll-dash
43
+ $ gem install jekyll-dash -v version
34
44
 
35
45
  ## Configuration
36
46
 
@@ -53,7 +63,7 @@ dash:
53
63
  date_format: "%b %-d, %Y"
54
64
 
55
65
  disqus:
56
- shortname: <your-discuss-shortname>
66
+ shortname: <your-disqus-shortname>
57
67
 
58
68
  # generate social links in footer
59
69
  # supported colors: green, red, orange, blue, cyan, pink, teal, yellow, indigo, purple
@@ -67,10 +77,16 @@ dash:
67
77
  - url: https://github.com/bitbrain
68
78
  icon: github-square
69
79
  color: purple
80
+
81
+ show_author: true
82
+
83
+ # Replaces the default avatar provider (gravatar)
84
+ #avatar_source: github
85
+ #github_username: bitbrain
70
86
  ```
71
87
  ## Using this theme directly on Github Pages
72
88
 
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).
89
+ Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://pages.github.com/versions/). 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
90
 
75
91
  For example, you want to host your own blog on `https://<username>.github.io`. As a result, you require the following repositories:
76
92
 
@@ -107,6 +123,12 @@ gem "liquid-md5"
107
123
 
108
124
  **Solution**: as described above you have to add the tagging plugin. Additionally, tags do not work natively by Github Pages. You have to build your site on an external CI and push the `_site` artifacts to a hosting repository.
109
125
 
126
+ > I am getting an error that Bundler could not find compatible versions for gem
127
+
128
+ **Solution**
129
+
130
+ Make sure you are using a version of this theme that is compatible with Jekyll. Version 1.x is only compatible with Jekyll 3.x while Version 2.x is only compatible with Jekyll 4.x.
131
+
110
132
  ## Contributing
111
133
 
112
134
  Bug reports and pull requests are welcome on GitHub at https://github.com/bitbrain/jekyll-dash. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -1,6 +1,19 @@
1
1
  <div class="author-box">
2
- {% if site.plugins contains "liquid-md5" %}
3
- <img src="https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256" class="author-avatar" />
4
- {% endif %}
2
+ {% if site.avatar_source == "github" and site.github_username %}
3
+ {% capture avatar_image %}
4
+ https://github.com/{{ site.github_username }}.png
5
+ {% endcapture %}
6
+ {% elsif site.avatar_source == "local" and site.avatar_path %}
7
+ {% capture avatar_image %}
8
+ {{site.avatar_path}}
9
+ {% endcapture %}
10
+ {% elsif site.plugins contains "liquid-md5" %}
11
+ {% capture avatar_image %}
12
+ https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256
13
+ {% endcapture %}
14
+ {% endif %}
15
+ {% if avatar_image %}
16
+ <img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" />
17
+ {% endif %}
5
18
  {{ site.description }}
6
19
  </div>
data/_includes/head.html CHANGED
@@ -5,8 +5,11 @@
5
5
  {%- seo -%}
6
6
  <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
7
7
  <link rel="icon" type="image/png" href="{{ "/assets/favicon.png" | relative_url }}" />
8
+ <link rel="stylesheet" href="{{ "/assets/css/magnific-popup.css" | relative_url }}">
8
9
  {%- feed_meta -%}
9
10
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
10
11
  {%- include google-analytics.html -%}
11
12
  {%- endif -%}
13
+ <script src="https://code.jquery.com/jquery-3.2.0.min.js"></script>
14
+ <script src="{{ "/assets/js/jquery.magnific-popup.js" | relative_url }}"></script>
12
15
  </head>
@@ -2,7 +2,13 @@
2
2
  <div class="wrapper">
3
3
  <a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}<b class="command_prompt"></b><b class="blinking_cursor">_</b></a>
4
4
  <span class="social_links">
5
- {% for link in site.dash.social_links %}<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fab fa-{{ link.icon }}"></i></a>{% endfor %}
5
+ {% for link in site.dash.social_links %}
6
+ {% if link.fa == true %}
7
+ <a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fa fa-{{ link.icon }}"></i></a>
8
+ {% else %}
9
+ <a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fab fa-{{ link.icon }}"></i></a>
10
+ {% endif %}
11
+ {% endfor %}
6
12
  </span>
7
13
  </div>
8
14
  </div>
data/_layouts/home.html CHANGED
@@ -1,7 +1,10 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% include author.html %}
4
+ {% unless site.dash.show_author == false %}
5
+ {% include author.html %}
6
+ {% endunless %}
7
+ {{ content }}
5
8
  {% assign posts_count = paginator.posts | size %}
6
9
  {% if posts_count > 0 %}
7
10
  <h1>recent articles</h1>
@@ -18,11 +21,16 @@ layout: default
18
21
  {% endfor %}
19
22
  </div>
20
23
  {% endif %}
21
- {% if site.date_format %}
22
- {{ post.date | date: site.date_format }}
24
+ {% if site.dash.date_format %}
25
+ {{ post.date | date: site.dash.date_format }}
23
26
  {% else %}
24
27
  {{ post.date | date: "%b %-d, %Y" }}
25
28
  {% endif %}
29
+ {% if site.show_excerpts == true %}
30
+ <div class="post-excerpt">
31
+ {{ post.content | strip_html | truncatewords: 50 }}
32
+ </div>
33
+ {% endif %}
26
34
  </div>
27
35
  </div>
28
36
  {% endfor %}
data/_layouts/post.html CHANGED
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% include author.html %}
4
+ {% unless site.dash.show_author == false %}
5
+ {% include author.html %}
6
+ {% endunless %}
5
7
  <div class="post">
6
8
  <h1 class="post-title">{{ page.title }}</h1>
7
9
  {% if site.plugins contains "jekyll/tagging" %}
@@ -13,7 +15,10 @@ layout: default
13
15
  {% endif %}
14
16
  <div class="post-date">Published on {{ page.date | date_to_string }}</div>
15
17
  {% if page.description != null %}
16
- <div class="post-description">{{ page.description }}</div>
18
+ <noscript>
19
+ <div class="post-description">{{ page.description }}</div>
20
+ </noscript>
21
+ <div id="animated-post-description" class="post-description" style="display: none;"></div>
17
22
  {% endif %}
18
23
  {{ content }}
19
24
  </div>
@@ -42,3 +47,45 @@ layout: default
42
47
  </div>
43
48
  {% endif %}
44
49
  {% include tagcloud.html %}
50
+
51
+ {% assign animation_speed = site.dash.animation_speed | default: 50 %}
52
+ <script>
53
+ let i = 0;
54
+ const text = '{{ page.description }}';
55
+ const speed = parseInt('{{ animation_speed }}');
56
+
57
+ function typeWriter() {
58
+ if (i < text.length) {
59
+ document.getElementById('animated-post-description').innerHTML += text.charAt(i);
60
+ i++;
61
+ setTimeout(typeWriter, speed);
62
+ }
63
+ }
64
+
65
+ document.getElementById('animated-post-description').style.display = 'initial';
66
+ typeWriter();
67
+
68
+ // Image modal
69
+ var $imgs = [];
70
+ $('img').each(function(idx) {
71
+ var obj = {
72
+ src: $(this).attr('src')
73
+ }
74
+ $imgs.push(obj);
75
+ var elem = $(this);
76
+ $(this).click(function() {
77
+ $('.modal').magnificPopup('open', idx);
78
+ });
79
+ });
80
+
81
+ $('.modal').magnificPopup({
82
+ items: $imgs,
83
+ type: 'image',
84
+ closeOnContentClick: true,
85
+ mainClass: 'mfp-img-mobile',
86
+ image: {
87
+ verticalFit: true
88
+ }
89
+
90
+ });
91
+ </script>
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% include author.html %}
4
+ {% unless site.dash.show_author == false %}
5
+ {% include author.html %}
6
+ {% endunless %}
5
7
  <h1 class="post-title">articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
6
8
  <div class="post-links">
7
9
  {% for post in site.posts %}
@@ -18,8 +20,8 @@ layout: default
18
20
  <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
19
21
  {% endfor %}
20
22
  </div>
21
- {% if site.date_format %}
22
- {{ post.date | date: site.date_format }}
23
+ {% if site.dash.date_format %}
24
+ {{ post.date | date: site.dash.date_format }}
23
25
  {% else %}
24
26
  {{ post.date | date: "%b %-d, %Y" }}
25
27
  {% endif %}
@@ -88,10 +88,8 @@
88
88
  @include themed() {
89
89
  color: t('foreground-color');
90
90
  }
91
- white-space: nowrap;
92
91
  overflow: hidden;
93
92
  width: 100%;
94
- animation: type 2s steps(60, end);
95
93
  margin-bottom: 1em;
96
94
  margin-left: 0.5em;
97
95
 
@@ -147,17 +145,10 @@
147
145
  list-style: none;
148
146
  margin-left: 0;
149
147
 
150
- svg {
151
- @include themed() {
152
- color: t('list-secondary');
153
- }
154
- margin-right: 0.65em;
155
- margin-bottom: -1px;
156
- }
157
-
158
148
  &:before {
159
149
  content: $icon-check;
160
150
  @include font-awesome-icon;
151
+ margin-right: 0.5em;
161
152
  }
162
153
  }
163
154
 
@@ -177,25 +168,18 @@
177
168
  color: t('quote-primary');
178
169
  }
179
170
 
171
+ & > p {
172
+ display: block;
173
+ padding-left: 3em;
174
+ }
175
+
180
176
  &:before {
181
177
  content: $icon-quote-right;
182
178
  @include font-awesome-icon;
183
- }
184
-
185
- & > svg.svg-inline--fa {
186
- @include themed() {
187
- color: t('quote-primary');
188
- }
179
+ margin-right: -2em;
189
180
  float: left;
190
- width: 3em;
191
- height: 3em;
192
- margin-right: 1em;
193
- }
194
181
 
195
- & > ul > li > svg {
196
- @include themed() {
197
- color: t('quote-primary');
198
- }
182
+ font-size: 2em;
199
183
  }
200
184
 
201
185
  li {
@@ -205,10 +189,6 @@
205
189
  &:before {
206
190
  content: $icon-minus;
207
191
  }
208
-
209
- & > svg {
210
- margin-left: 2em;
211
- }
212
192
  }
213
193
  }
214
194
  }
@@ -218,6 +198,8 @@
218
198
  & > .post-link {
219
199
  font-size: $base-font-size;
220
200
  font-size: $post-link-font-size;
201
+ display: inline-block;
202
+ text-align: initial;
221
203
  }
222
204
 
223
205
  & > .post-meta {
@@ -233,7 +215,7 @@
233
215
  text-align: left;
234
216
  & > a {
235
217
  display: inline-block;
236
- margin-bottom: 1em;
218
+ margin: 0.3em 0.3em 0.3em 0;
237
219
  }
238
220
  }
239
221
 
@@ -252,10 +234,6 @@
252
234
  }
253
235
  }
254
236
 
255
- & > svg {
256
- margin-right: 0.4em;
257
- }
258
-
259
237
  &:before {
260
238
  content: $icon-tag;
261
239
  @include font-awesome-icon;
@@ -263,9 +241,15 @@
263
241
  }
264
242
  }
265
243
 
244
+ .tag {
245
+ display: inline-block;
246
+ margin: 0.3em 0.3em 0.3em 0;
247
+ }
248
+
266
249
  .post-tags {
267
250
  margin-top: 0.3em;
268
251
  margin-bottom: 0.5em;
252
+ text-align: initial;
269
253
  }
270
254
 
271
255
  .credits {
@@ -297,10 +281,6 @@
297
281
  &:hover {
298
282
  text-decoration: none;
299
283
  }
300
-
301
- svg {
302
- padding-left: 0.1em;
303
- }
304
284
  }
305
285
 
306
286
  & > a {
@@ -362,6 +342,7 @@ ul.related-posts {
362
342
  content: $icon-flask;
363
343
  @include font-awesome-icon;
364
344
  color: $color-green;
345
+ margin-right: 0.5em;
365
346
  }
366
347
  }
367
348
  }
@@ -389,3 +370,7 @@ ul.related-posts {
389
370
  color: $color-yellow;
390
371
  }
391
372
  }
373
+
374
+ .modal{
375
+ cursor: pointer;
376
+ }
data/assets/avatar.png ADDED
Binary file