jekyll-dash 1.5.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eeb713274de4920ebbcb93fdf76b6a885cd35b49484355bd3df64b757533e284
4
- data.tar.gz: 5817172bab133c9650f652f4fd5bb9fc5a5ebaeae0a95ece58d9d0964a26fc43
3
+ metadata.gz: f29e755db2527c979641ecb23c33b2f262c0f211584ec242afc77484d1c654f7
4
+ data.tar.gz: 805c3a368c4a96784046d9f787cf066b2d156eacdcf4e58609c7ae927e3bad2a
5
5
  SHA512:
6
- metadata.gz: 3042d5ab2344aa9c26b27a9decf11b15aa9032e81b1b540259bfd088fde490f004b27f028d27bb6b151343f8d2a956889bf504eb4fbd0dfe839349f630acf289
7
- data.tar.gz: 6a75b4cfb10afa1f6c3d5d5a404179f65992104b9f5b51c36dca3007d1f6bd7dcd5b7a93d49c7c0b83576989f7477945a0aacf5801d5bc3e3e1dfa9050656edb
6
+ metadata.gz: 9d1bf17a0e6c40756660b888e7ba6c7f6262afd9999a9e2d29fbe7a054b3e77a2e4de7f442dbdf98a273a4e5aee28cc8c08a4f658897203fe11320aacbc93c27
7
+ data.tar.gz: e14db70d0eb5c5c3ecf4b0d9cb0bfb28ac73ecd3210fd3a86778656f23fcee48ab21eb7e9867c52dd29343ec232bc90915ca37f2c2e60282c6238a1cb13f7a12
data/README.md CHANGED
@@ -3,10 +3,8 @@
3
3
 
4
4
  A dark and light theme for Jekyll, inspired by Dash UI for Atom. 🌒☀
5
5
 
6
- ![Build Status](https://github.com/bitbrain/jekyll-dash/actions/workflows/release-gem.yml/badge.svg)
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")
10
8
  ---
11
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).
12
10
 
@@ -25,7 +23,7 @@ gem 'jekyll-dash', '~> 1.0.0'
25
23
 
26
24
  For **Jekyll 4**:
27
25
  ```ruby
28
- gem 'jekyll-dash', '~> 2.1.0'
26
+ gem 'jekyll-dash', '~> 2.0.0'
29
27
  ```
30
28
 
31
29
  And add this line to your Jekyll site's `_config.yml`:
@@ -60,24 +58,10 @@ tag_page_layout: tag_page
60
58
  tag_page_dir: tag
61
59
 
62
60
  dash:
63
- # the way how dates should be displayed
64
61
  date_format: "%b %-d, %Y"
65
62
 
66
- # (optional) discqus comment configuration
67
63
  disqus:
68
- shortname: <your-disqus-shortname>
69
-
70
- # the animation speed of the post scroll-in effect
71
- animation_speed: 50
72
-
73
- # wether to enable Right-to-Left support or not
74
- rtl: false
75
-
76
- # Replaces the default avatar provider (gravatar)
77
- #avatar_source: github
78
- #github_username: bitbrain
79
- #avatar_source: local
80
- #avatar_path: /assets/avatar.png
64
+ shortname: <your-disqus-shortname>
81
65
 
82
66
  # generate social links in footer
83
67
  # supported colors: green, red, orange, blue, cyan, pink, teal, yellow, indigo, purple
@@ -91,17 +75,21 @@ dash:
91
75
  - url: https://github.com/bitbrain
92
76
  icon: github-square
93
77
  color: purple
94
-
95
- # wether the author box should be displayed or not
78
+
96
79
  show_author: true
80
+
81
+ # Replaces the default avatar provider (gravatar)
82
+ #avatar_source: github
83
+ #github_username: bitbrain
97
84
  ```
98
85
  ## Using this theme directly on Github Pages
99
86
 
100
- 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` [separately via Github Actions](https://jekyllrb.com/docs/continuous-integration/github-actions/).
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).
101
88
 
102
- * `<username>.github.io` - contains main source branch and orphan gh-pages branch ([see example](https://github.com/bitbrain/bitbrain.github.io))
89
+ For example, you want to host your own blog on `https://<username>.github.io`. As a result, you require the following repositories:
103
90
 
104
- I have created [a guide on how to set this up here](https://bitbra.in/2021/10/03/host-your-own-blog-for-free-with-custom-domain.html).
91
+ * `blog` - contains the actual Jekyll sources ([see example](https://github.com/bitbrain/blog))
92
+ * `<username>.github.io` - contains generated webpage, pushed automatically via TravisCI ([see example](https://github.com/bitbrain/bitbrain.github.io))
105
93
 
106
94
  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!
107
95
 
@@ -133,12 +121,6 @@ gem "liquid-md5"
133
121
 
134
122
  **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.
135
123
 
136
- > I am getting an error that Bundler could not find compatible versions for gem
137
-
138
- **Solution**
139
-
140
- 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.
141
-
142
124
  ## Contributing
143
125
 
144
126
  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,9 +1,15 @@
1
1
  <div class="author-box">
2
- {% if site.dash.rtl %}
3
- <div class="description">{{ site.description }}</div>
4
- {%- include avatar.html -%}
5
- {% else %}
6
- {%- include avatar.html -%}
7
- <div class="description">{{ site.description }}</div>
8
- {% 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.plugins contains "liquid-md5" %}
7
+ {% capture avatar_image %}
8
+ https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256
9
+ {% endcapture %}
10
+ {% endif %}
11
+ {% if avatar_image %}
12
+ <img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" />
13
+ {% endif %}
14
+ {{ site.description }}
9
15
  </div>
data/_includes/head.html CHANGED
@@ -5,11 +5,8 @@
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 }}">
9
8
  {%- feed_meta -%}
10
9
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
11
10
  {%- include google-analytics.html -%}
12
11
  {%- 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>
15
12
  </head>
@@ -2,13 +2,7 @@
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 %}
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 %}
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 %}
12
6
  </span>
13
7
  </div>
14
8
  </div>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html class="{% if site.dash.rtl %}direction--rtl{% else %}direction--ltr{% endif %}"lang="{{ page.lang | default: site.lang | default: "en" }}">
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
3
 
4
4
  {%- include head.html -%}
5
5
 
data/_layouts/home.html CHANGED
@@ -4,7 +4,6 @@ layout: default
4
4
  {% unless site.dash.show_author == false %}
5
5
  {% include author.html %}
6
6
  {% endunless %}
7
- {{ content }}
8
7
  {% assign posts_count = paginator.posts | size %}
9
8
  {% if posts_count > 0 %}
10
9
  <h1>recent articles</h1>
@@ -17,12 +16,12 @@ layout: default
17
16
  {% if site.plugins contains "jekyll/tagging" %}
18
17
  <div class="post-tags">
19
18
  {% for tag in post.tags %}
20
- <a class="tag" href="{{ tag | tag_url }}">{{ tag }}</a>
19
+ <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
21
20
  {% endfor %}
22
21
  </div>
23
22
  {% endif %}
24
- {% if site.dash.date_format %}
25
- {{ post.date | date: site.dash.date_format }}
23
+ {% if site.date_format %}
24
+ {{ post.date | date: site.date_format }}
26
25
  {% else %}
27
26
  {{ post.date | date: "%b %-d, %Y" }}
28
27
  {% endif %}
data/_layouts/post.html CHANGED
@@ -9,16 +9,13 @@ layout: default
9
9
  {% if site.plugins contains "jekyll/tagging" %}
10
10
  <div class="post-tags">
11
11
  {% for tag in page.tags %}
12
- <a class="tag" href="{{ tag | tag_url }}">{{ tag }}</a>
12
+ <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
13
13
  {% endfor %}
14
14
  </div>
15
15
  {% endif %}
16
16
  <div class="post-date">Published on {{ page.date | date_to_string }}</div>
17
17
  {% if page.description != null %}
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>
18
+ <div class="post-description">{{ page.description }}</div>
22
19
  {% endif %}
23
20
  {{ content }}
24
21
  </div>
@@ -47,45 +44,3 @@ layout: default
47
44
  </div>
48
45
  {% endif %}
49
46
  {% 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>
@@ -17,11 +17,11 @@ layout: default
17
17
 
18
18
  <div class="post-tags">
19
19
  {% for tag in post.tags %}
20
- <a class="tag" href="{{ tag | tag_url }}">{{ tag }}</a>
20
+ <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
21
21
  {% endfor %}
22
22
  </div>
23
- {% if site.dash.date_format %}
24
- {{ post.date | date: site.dash.date_format }}
23
+ {% if site.date_format %}
24
+ {{ post.date | date: site.date_format }}
25
25
  {% else %}
26
26
  {{ post.date | date: "%b %-d, %Y" }}
27
27
  {% endif %}
@@ -52,75 +52,21 @@
52
52
  }
53
53
 
54
54
  /**
55
- * Right-to-Left support
55
+ * Author box
56
56
  */
57
57
 
58
- html.direction--rtl {
59
- .author-box {
60
- text-align: right;
61
- & > .description {
62
- direction: rtl;
63
- }
64
- & > img {
65
- margin-right: 0em;
66
- margin-left: 1em;
67
- }
68
- }
69
- ol > li, ul > li {
70
- text-align: right;
71
- direction: rtl;
72
- &::before {
73
- float: right;
74
- margin-left: 0.5em;
75
- }
76
- }
77
- h1, h2, h3, h4, h5, h6 {
78
- direction: rtl;
79
- text-align: right;
80
- }
81
- .post-link-wrapper {
82
- direction: rtl;
83
- }
84
- .post {
85
- direction: rtl;
86
- }
87
- .pagination {
88
- text-align: right;
89
- }
90
- .tag-cloud {
91
- direction: rtl;
92
- text-align: right;
93
- }
94
- .related-posts {
95
- direction: rtl;
96
- text-align: right;
97
-
98
- & > li::before {
99
- margin-right: 0;
100
- margin-left: 0.5em;
101
- }
102
- }
103
- pre {
104
- direction: ltr;
105
- text-align: left;
106
- }
107
- }
108
-
109
58
  .author-box {
110
59
  margin-bottom: 1em;
111
60
  text-align: left;
112
61
  min-height: 72px;
113
62
  font-style: italic;
114
- display: inline-flex;
115
- & > .description {
116
- flex:8;
117
- }
118
63
  & > .author-avatar {
64
+ float: left;
65
+ white-space: pre-line;
119
66
  margin-right: 1em;
120
67
  width: 72px;
121
- height: 100%;
68
+ height: 72px;
122
69
  border-radius: 0.3em;
123
- flex: 1;
124
70
  }
125
71
  }
126
72
 
@@ -142,8 +88,10 @@
142
88
  @include themed() {
143
89
  color: t('foreground-color');
144
90
  }
91
+ white-space: nowrap;
145
92
  overflow: hidden;
146
93
  width: 100%;
94
+ animation: type 2s steps(60, end);
147
95
  margin-bottom: 1em;
148
96
  margin-left: 0.5em;
149
97
 
@@ -223,7 +171,7 @@
223
171
  }
224
172
 
225
173
  & > p {
226
- display: inline-block;
174
+ display: block;
227
175
  padding-left: 3em;
228
176
  }
229
177
 
@@ -236,10 +184,6 @@
236
184
  font-size: 2em;
237
185
  }
238
186
 
239
- & > ul {
240
- margin-left: 3em;
241
- }
242
-
243
187
  li {
244
188
  @include themed() {
245
189
  color: t('quote-secondary');
@@ -427,8 +371,4 @@ ul.related-posts {
427
371
  }
428
372
  color: $color-yellow;
429
373
  }
430
- }
431
-
432
- .modal{
433
- cursor: pointer;
434
374
  }
@@ -8,6 +8,8 @@
8
8
  -webkit-font-smoothing: antialiased;
9
9
  }
10
10
 
11
+ $theme-map: null;
12
+
11
13
  @mixin themed() {
12
14
  @each $theme, $map in $themes {
13
15
  .theme--#{$theme} & {
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.5.2
4
+ version: 2.0.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: 2021-12-18 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.5'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.5'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-feed
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll-seo-tag
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.2.28
75
+ version: 2.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.2.28
82
+ version: 2.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 13.0.6
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 13.0.6
96
+ version: '13.0'
97
97
  description:
98
98
  email:
99
99
  - miguel-gonzalez@gmx.de
@@ -104,7 +104,6 @@ files:
104
104
  - LICENSE
105
105
  - README.md
106
106
  - _includes/author.html
107
- - _includes/avatar.html
108
107
  - _includes/disqus.html
109
108
  - _includes/footer.html
110
109
  - _includes/head.html
@@ -146,8 +145,6 @@ files:
146
145
  - _sass/fa/regular.scss
147
146
  - _sass/fa/solid.scss
148
147
  - _sass/fa/v4-shims.scss
149
- - assets/avatar.png
150
- - assets/css/magnific-popup.css
151
148
  - assets/css/style.scss
152
149
  - assets/favicon.png
153
150
  - assets/fonts/RobotoMono-Medium.eot
@@ -173,8 +170,6 @@ files:
173
170
  - assets/fonts/fa-solid-900.ttf
174
171
  - assets/fonts/fa-solid-900.woff
175
172
  - assets/fonts/fa-solid-900.woff2
176
- - assets/js/jquery.magnific-popup.js
177
- - assets/js/jquery.magnific-popup.min.js
178
173
  homepage: https://bitbrain.github.io/jekyll-dash
179
174
  licenses:
180
175
  - MIT
@@ -194,7 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
189
  - !ruby/object:Gem::Version
195
190
  version: '0'
196
191
  requirements: []
197
- rubygems_version: 3.1.2
192
+ rubyforge_project:
193
+ rubygems_version: 2.7.7
198
194
  signing_key:
199
195
  specification_version: 4
200
196
  summary: A dark UI theme for Jekyll, inspired by Dash UI for Atom.
@@ -1,16 +0,0 @@
1
- {% if site.dash.avatar_source == "github" and site.dash.github_username %}
2
- {% capture avatar_image %}
3
- https://github.com/{{ site.dash.github_username }}.png
4
- {% endcapture %}
5
- {% elsif site.dash.avatar_source == "local" and site.dash.avatar_path %}
6
- {% capture avatar_image %}
7
- {{site.dash.avatar_path}}
8
- {% endcapture %}
9
- {% elsif site.plugins contains "liquid-md5" %}
10
- {% capture avatar_image %}
11
- https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256
12
- {% endcapture %}
13
- {% endif %}
14
- {% if avatar_image %}
15
- <img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" />
16
- {% endif %}
data/assets/avatar.png DELETED
Binary file