jekyll-dash 2.0.0 → 2.1.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: f29e755db2527c979641ecb23c33b2f262c0f211584ec242afc77484d1c654f7
4
- data.tar.gz: 805c3a368c4a96784046d9f787cf066b2d156eacdcf4e58609c7ae927e3bad2a
3
+ metadata.gz: a09901cd8a5c824d2abe303c081155c13caf9e391e7686a8635051ad727e4fbf
4
+ data.tar.gz: feffa0f63ae250b87f5069abab013d892a061e464a2adef914723e36d945a21a
5
5
  SHA512:
6
- metadata.gz: 9d1bf17a0e6c40756660b888e7ba6c7f6262afd9999a9e2d29fbe7a054b3e77a2e4de7f442dbdf98a273a4e5aee28cc8c08a4f658897203fe11320aacbc93c27
7
- data.tar.gz: e14db70d0eb5c5c3ecf4b0d9cb0bfb28ac73ecd3210fd3a86778656f23fcee48ab21eb7e9867c52dd29343ec232bc90915ca37f2c2e60282c6238a1cb13f7a12
6
+ metadata.gz: df3dde9fd0354defd85f986c61994d016f24e15f5bd8d450dfed91db753e64af2813d9818da1a96000434f3332c1b33aefa0f6a10d2fc1b78f847fe426824356
7
+ data.tar.gz: 39966c9f4fa428f0bce73e0c4676fa38b9576e3590083799bd0597a6e460fe3680392f04f41725721bdb687f626c7eea9b771441d2413ba0168e081fdc637c98
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
 
@@ -84,7 +86,7 @@ dash:
84
86
  ```
85
87
  ## Using this theme directly on Github Pages
86
88
 
87
- 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).
88
90
 
89
91
  For example, you want to host your own blog on `https://<username>.github.io`. As a result, you require the following repositories:
90
92
 
@@ -121,6 +123,12 @@ gem "liquid-md5"
121
123
 
122
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.
123
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
+
124
132
  ## Contributing
125
133
 
126
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.
@@ -3,6 +3,10 @@
3
3
  {% capture avatar_image %}
4
4
  https://github.com/{{ site.github_username }}.png
5
5
  {% endcapture %}
6
+ {% elsif site.avatar_source == "local" and site.avatar_path %}
7
+ {% capture avatar_image %}
8
+ {{site.avatar_path}}
9
+ {% endcapture %}
6
10
  {% elsif site.plugins contains "liquid-md5" %}
7
11
  {% capture avatar_image %}
8
12
  https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256
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
@@ -4,6 +4,7 @@ layout: default
4
4
  {% unless site.dash.show_author == false %}
5
5
  {% include author.html %}
6
6
  {% endunless %}
7
+ {{ content }}
7
8
  {% assign posts_count = paginator.posts | size %}
8
9
  {% if posts_count > 0 %}
9
10
  <h1>recent articles</h1>
@@ -20,8 +21,8 @@ layout: default
20
21
  {% endfor %}
21
22
  </div>
22
23
  {% endif %}
23
- {% if site.date_format %}
24
- {{ post.date | date: site.date_format }}
24
+ {% if site.dash.date_format %}
25
+ {{ post.date | date: site.dash.date_format }}
25
26
  {% else %}
26
27
  {{ post.date | date: "%b %-d, %Y" }}
27
28
  {% endif %}
data/_layouts/post.html CHANGED
@@ -15,7 +15,10 @@ layout: default
15
15
  {% endif %}
16
16
  <div class="post-date">Published on {{ page.date | date_to_string }}</div>
17
17
  {% if page.description != null %}
18
- <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>
19
22
  {% endif %}
20
23
  {{ content }}
21
24
  </div>
@@ -44,3 +47,45 @@ layout: default
44
47
  </div>
45
48
  {% endif %}
46
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>
@@ -20,8 +20,8 @@ layout: default
20
20
  <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
21
21
  {% endfor %}
22
22
  </div>
23
- {% if site.date_format %}
24
- {{ post.date | date: site.date_format }}
23
+ {% if site.dash.date_format %}
24
+ {{ post.date | date: site.dash.date_format }}
25
25
  {% else %}
26
26
  {{ post.date | date: "%b %-d, %Y" }}
27
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
 
@@ -371,4 +369,8 @@ ul.related-posts {
371
369
  }
372
370
  color: $color-yellow;
373
371
  }
372
+ }
373
+
374
+ .modal{
375
+ cursor: pointer;
374
376
  }
data/assets/avatar.png ADDED
Binary file
@@ -0,0 +1,351 @@
1
+ /* Magnific Popup CSS */
2
+ .mfp-bg {
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ z-index: 1042;
8
+ overflow: hidden;
9
+ position: fixed;
10
+ background: #0b0b0b;
11
+ opacity: 0.8; }
12
+
13
+ .mfp-wrap {
14
+ top: 0;
15
+ left: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ z-index: 1043;
19
+ position: fixed;
20
+ outline: none !important;
21
+ -webkit-backface-visibility: hidden; }
22
+
23
+ .mfp-container {
24
+ text-align: center;
25
+ position: absolute;
26
+ width: 100%;
27
+ height: 100%;
28
+ left: 0;
29
+ top: 0;
30
+ padding: 0 8px;
31
+ box-sizing: border-box; }
32
+
33
+ .mfp-container:before {
34
+ content: '';
35
+ display: inline-block;
36
+ height: 100%;
37
+ vertical-align: middle; }
38
+
39
+ .mfp-align-top .mfp-container:before {
40
+ display: none; }
41
+
42
+ .mfp-content {
43
+ position: relative;
44
+ display: inline-block;
45
+ vertical-align: middle;
46
+ margin: 0 auto;
47
+ text-align: left;
48
+ z-index: 1045; }
49
+
50
+ .mfp-inline-holder .mfp-content,
51
+ .mfp-ajax-holder .mfp-content {
52
+ width: 100%;
53
+ cursor: auto; }
54
+
55
+ .mfp-ajax-cur {
56
+ cursor: progress; }
57
+
58
+ .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
59
+ cursor: -moz-zoom-out;
60
+ cursor: -webkit-zoom-out;
61
+ cursor: zoom-out; }
62
+
63
+ .mfp-zoom {
64
+ cursor: pointer;
65
+ cursor: -webkit-zoom-in;
66
+ cursor: -moz-zoom-in;
67
+ cursor: zoom-in; }
68
+
69
+ .mfp-auto-cursor .mfp-content {
70
+ cursor: auto; }
71
+
72
+ .mfp-close,
73
+ .mfp-arrow,
74
+ .mfp-preloader,
75
+ .mfp-counter {
76
+ -webkit-user-select: none;
77
+ -moz-user-select: none;
78
+ user-select: none; }
79
+
80
+ .mfp-loading.mfp-figure {
81
+ display: none; }
82
+
83
+ .mfp-hide {
84
+ display: none !important; }
85
+
86
+ .mfp-preloader {
87
+ color: #CCC;
88
+ position: absolute;
89
+ top: 50%;
90
+ width: auto;
91
+ text-align: center;
92
+ margin-top: -0.8em;
93
+ left: 8px;
94
+ right: 8px;
95
+ z-index: 1044; }
96
+ .mfp-preloader a {
97
+ color: #CCC; }
98
+ .mfp-preloader a:hover {
99
+ color: #FFF; }
100
+
101
+ .mfp-s-ready .mfp-preloader {
102
+ display: none; }
103
+
104
+ .mfp-s-error .mfp-content {
105
+ display: none; }
106
+
107
+ button.mfp-close,
108
+ button.mfp-arrow {
109
+ overflow: visible;
110
+ cursor: pointer;
111
+ background: transparent;
112
+ border: 0;
113
+ -webkit-appearance: none;
114
+ display: block;
115
+ outline: none;
116
+ padding: 0;
117
+ z-index: 1046;
118
+ box-shadow: none;
119
+ touch-action: manipulation; }
120
+
121
+ button::-moz-focus-inner {
122
+ padding: 0;
123
+ border: 0; }
124
+
125
+ .mfp-close {
126
+ width: 44px;
127
+ height: 44px;
128
+ line-height: 44px;
129
+ position: absolute;
130
+ right: 0;
131
+ top: 0;
132
+ text-decoration: none;
133
+ text-align: center;
134
+ opacity: 0.65;
135
+ padding: 0 0 18px 10px;
136
+ color: #FFF;
137
+ font-style: normal;
138
+ font-size: 28px;
139
+ font-family: Arial, Baskerville, monospace; }
140
+ .mfp-close:hover,
141
+ .mfp-close:focus {
142
+ opacity: 1; }
143
+ .mfp-close:active {
144
+ top: 1px; }
145
+
146
+ .mfp-close-btn-in .mfp-close {
147
+ color: #333; }
148
+
149
+ .mfp-image-holder .mfp-close,
150
+ .mfp-iframe-holder .mfp-close {
151
+ color: #FFF;
152
+ right: -6px;
153
+ text-align: right;
154
+ padding-right: 6px;
155
+ width: 100%; }
156
+
157
+ .mfp-counter {
158
+ position: absolute;
159
+ top: 0;
160
+ right: 0;
161
+ color: #CCC;
162
+ font-size: 12px;
163
+ line-height: 18px;
164
+ white-space: nowrap; }
165
+
166
+ .mfp-arrow {
167
+ position: absolute;
168
+ opacity: 0.65;
169
+ margin: 0;
170
+ top: 50%;
171
+ margin-top: -55px;
172
+ padding: 0;
173
+ width: 90px;
174
+ height: 110px;
175
+ -webkit-tap-highlight-color: transparent; }
176
+ .mfp-arrow:active {
177
+ margin-top: -54px; }
178
+ .mfp-arrow:hover,
179
+ .mfp-arrow:focus {
180
+ opacity: 1; }
181
+ .mfp-arrow:before,
182
+ .mfp-arrow:after {
183
+ content: '';
184
+ display: block;
185
+ width: 0;
186
+ height: 0;
187
+ position: absolute;
188
+ left: 0;
189
+ top: 0;
190
+ margin-top: 35px;
191
+ margin-left: 35px;
192
+ border: medium inset transparent; }
193
+ .mfp-arrow:after {
194
+ border-top-width: 13px;
195
+ border-bottom-width: 13px;
196
+ top: 8px; }
197
+ .mfp-arrow:before {
198
+ border-top-width: 21px;
199
+ border-bottom-width: 21px;
200
+ opacity: 0.7; }
201
+
202
+ .mfp-arrow-left {
203
+ left: 0; }
204
+ .mfp-arrow-left:after {
205
+ border-right: 17px solid #FFF;
206
+ margin-left: 31px; }
207
+ .mfp-arrow-left:before {
208
+ margin-left: 25px;
209
+ border-right: 27px solid #3F3F3F; }
210
+
211
+ .mfp-arrow-right {
212
+ right: 0; }
213
+ .mfp-arrow-right:after {
214
+ border-left: 17px solid #FFF;
215
+ margin-left: 39px; }
216
+ .mfp-arrow-right:before {
217
+ border-left: 27px solid #3F3F3F; }
218
+
219
+ .mfp-iframe-holder {
220
+ padding-top: 40px;
221
+ padding-bottom: 40px; }
222
+ .mfp-iframe-holder .mfp-content {
223
+ line-height: 0;
224
+ width: 100%;
225
+ max-width: 900px; }
226
+ .mfp-iframe-holder .mfp-close {
227
+ top: -40px; }
228
+
229
+ .mfp-iframe-scaler {
230
+ width: 100%;
231
+ height: 0;
232
+ overflow: hidden;
233
+ padding-top: 56.25%; }
234
+ .mfp-iframe-scaler iframe {
235
+ position: absolute;
236
+ display: block;
237
+ top: 0;
238
+ left: 0;
239
+ width: 100%;
240
+ height: 100%;
241
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
242
+ background: #000; }
243
+
244
+ /* Main image in popup */
245
+ img.mfp-img {
246
+ width: auto;
247
+ max-width: 100%;
248
+ height: auto;
249
+ display: block;
250
+ line-height: 0;
251
+ box-sizing: border-box;
252
+ padding: 40px 0 40px;
253
+ margin: 0 auto; }
254
+
255
+ /* The shadow behind the image */
256
+ .mfp-figure {
257
+ line-height: 0; }
258
+ .mfp-figure:after {
259
+ content: '';
260
+ position: absolute;
261
+ left: 0;
262
+ top: 40px;
263
+ bottom: 40px;
264
+ display: block;
265
+ right: 0;
266
+ width: auto;
267
+ height: auto;
268
+ z-index: -1;
269
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
270
+ background: #444; }
271
+ .mfp-figure small {
272
+ color: #BDBDBD;
273
+ display: block;
274
+ font-size: 12px;
275
+ line-height: 14px; }
276
+ .mfp-figure figure {
277
+ margin: 0; }
278
+
279
+ .mfp-bottom-bar {
280
+ margin-top: -36px;
281
+ position: absolute;
282
+ top: 100%;
283
+ left: 0;
284
+ width: 100%;
285
+ cursor: auto; }
286
+
287
+ .mfp-title {
288
+ text-align: left;
289
+ line-height: 18px;
290
+ color: #F3F3F3;
291
+ word-wrap: break-word;
292
+ padding-right: 36px; }
293
+
294
+ .mfp-image-holder .mfp-content {
295
+ max-width: 100%; }
296
+
297
+ .mfp-gallery .mfp-image-holder .mfp-figure {
298
+ cursor: pointer; }
299
+
300
+ @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
301
+ /**
302
+ * Remove all paddings around the image on small screen
303
+ */
304
+ .mfp-img-mobile .mfp-image-holder {
305
+ padding-left: 0;
306
+ padding-right: 0; }
307
+ .mfp-img-mobile img.mfp-img {
308
+ padding: 0; }
309
+ .mfp-img-mobile .mfp-figure:after {
310
+ top: 0;
311
+ bottom: 0; }
312
+ .mfp-img-mobile .mfp-figure small {
313
+ display: inline;
314
+ margin-left: 5px; }
315
+ .mfp-img-mobile .mfp-bottom-bar {
316
+ background: rgba(0, 0, 0, 0.6);
317
+ bottom: 0;
318
+ margin: 0;
319
+ top: auto;
320
+ padding: 3px 5px;
321
+ position: fixed;
322
+ box-sizing: border-box; }
323
+ .mfp-img-mobile .mfp-bottom-bar:empty {
324
+ padding: 0; }
325
+ .mfp-img-mobile .mfp-counter {
326
+ right: 5px;
327
+ top: 3px; }
328
+ .mfp-img-mobile .mfp-close {
329
+ top: 0;
330
+ right: 0;
331
+ width: 35px;
332
+ height: 35px;
333
+ line-height: 35px;
334
+ background: rgba(0, 0, 0, 0.6);
335
+ position: fixed;
336
+ text-align: center;
337
+ padding: 0; } }
338
+
339
+ @media all and (max-width: 900px) {
340
+ .mfp-arrow {
341
+ -webkit-transform: scale(0.75);
342
+ transform: scale(0.75); }
343
+ .mfp-arrow-left {
344
+ -webkit-transform-origin: 0;
345
+ transform-origin: 0; }
346
+ .mfp-arrow-right {
347
+ -webkit-transform-origin: 100%;
348
+ transform-origin: 100%; }
349
+ .mfp-container {
350
+ padding-left: 6px;
351
+ padding-right: 6px; } }