jekyll-dash 1.3.5 → 1.5.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: 86f04b81ad4187386d150a31f2e56cbe2ff90b3e3f620fa00068686165b38eee
4
- data.tar.gz: f1fcde4a0bfc7504360a2c899d193e72b6faba8fc729ad24e8500803033c70e5
3
+ metadata.gz: 38df2dc5ed74aae72fabcb7bf9ac4068c71bee323e39d2b1bea2964fd16ffaa4
4
+ data.tar.gz: e5b1853e9737b119540d4773518c0a9406c455a8c68702cb9a8c9fb7a9d10d02
5
5
  SHA512:
6
- metadata.gz: f4d3461936484aa3e947105f009c4b9bd568cb7556293341cd0656f923788d5c51eb226d7b95636b3ed45e2b1d397ab96f7269492505ec3a1b55c73feb1a992d
7
- data.tar.gz: fe410766ad9ae71ead6fee0f404be1df9b3edb936e3b1e9056a24b8d8cecd8687b0c4457c03fdf3932887f446a2f00d7c26de37c6cb698d380281386c4461e4d
6
+ metadata.gz: f94d2234e44c5a0f6b482277ca6ac00d5de3cb5953935c65c3ddb233733cdd5db177746cc69c01a76b6c7e30c3c4dcaa8f65a5276bc3c8baba11b5ea8c1070e8
7
+ data.tar.gz: fde4b61847ecfef4a164257bb02e02e3d87dbe2f2bd05d8bd61244e42df7517fd95706716195348f0980bbf309298daf1fb99d27045d502e56c367184bf73e51
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  A dark and light theme for Jekyll, inspired by Dash UI for Atom. 🌒☀
5
5
 
6
- [![Build Status](https://img.shields.io/travis/bitbrain/braingdx/master.svg?logo=travis&style=flat-square)](https://travis-ci.org/bitbrain/jekyll-dash)
6
+ ![Build Status](https://github.com/bitbrain/jekyll-dash/actions/workflows/release-gem.yml/badge.svg)
7
7
  [![license](https://img.shields.io/github/license/bitbrain/jekyll-dash.svg?style=flat-square)](LICENSE.MD)
8
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
9
  [![Downloads](https://ruby-gem-downloads-badge.herokuapp.com/jekyll-dash)](https://rubygems.org/gems/jekyll-dash "Number of Gem downloads")
@@ -25,7 +25,7 @@ gem 'jekyll-dash', '~> 1.0.0'
25
25
 
26
26
  For **Jekyll 4**:
27
27
  ```ruby
28
- gem 'jekyll-dash', '~> 2.0.0'
28
+ gem 'jekyll-dash', '~> 2.1.0'
29
29
  ```
30
30
 
31
31
  And add this line to your Jekyll site's `_config.yml`:
@@ -60,10 +60,24 @@ tag_page_layout: tag_page
60
60
  tag_page_dir: tag
61
61
 
62
62
  dash:
63
+ # the way how dates should be displayed
63
64
  date_format: "%b %-d, %Y"
64
65
 
66
+ # (optional) discqus comment configuration
65
67
  disqus:
66
- shortname: <your-disqus-shortname>
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
67
81
 
68
82
  # generate social links in footer
69
83
  # supported colors: green, red, orange, blue, cyan, pink, teal, yellow, indigo, purple
@@ -77,21 +91,17 @@ dash:
77
91
  - url: https://github.com/bitbrain
78
92
  icon: github-square
79
93
  color: purple
80
-
94
+
95
+ # wether the author box should be displayed or not
81
96
  show_author: true
82
-
83
- # Replaces the default avatar provider (gravatar)
84
- #avatar_source: github
85
- #github_username: bitbrain
86
97
  ```
87
98
  ## Using this theme directly on Github Pages
88
99
 
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).
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/).
90
101
 
91
- For example, you want to host your own blog on `https://<username>.github.io`. As a result, you require the following repositories:
102
+ * `<username>.github.io` - contains main source branch and orphan gh-pages branch ([see example](https://github.com/bitbrain/bitbrain.github.io))
92
103
 
93
- * `blog` - contains the actual Jekyll sources ([see example](https://github.com/bitbrain/blog))
94
- * `<username>.github.io` - contains generated webpage, pushed automatically via TravisCI ([see example](https://github.com/bitbrain/bitbrain.github.io))
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).
95
105
 
96
106
  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!
97
107
 
@@ -1,19 +1,9 @@
1
1
  <div class="author-box">
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 %}
18
- {{ site.description }}
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 %}
19
9
  </div>
@@ -0,0 +1,16 @@
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 %}
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
2
+ <html class="{% if site.dash.rtl %}direction--rtl{% else %}direction--ltr{% endif %}"lang="{{ page.lang | default: site.lang | default: "en" }}">
3
3
 
4
4
  {%- include head.html -%}
5
5
 
@@ -52,21 +52,75 @@
52
52
  }
53
53
 
54
54
  /**
55
- * Author box
55
+ * Right-to-Left support
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
+
58
109
  .author-box {
59
110
  margin-bottom: 1em;
60
111
  text-align: left;
61
112
  min-height: 72px;
62
113
  font-style: italic;
114
+ display: inline-flex;
115
+ & > .description {
116
+ flex:8;
117
+ }
63
118
  & > .author-avatar {
64
- float: left;
65
- white-space: pre-line;
66
119
  margin-right: 1em;
67
120
  width: 72px;
68
- height: 72px;
121
+ height: 100%;
69
122
  border-radius: 0.3em;
123
+ flex: 1;
70
124
  }
71
125
  }
72
126
 
@@ -169,7 +223,7 @@
169
223
  }
170
224
 
171
225
  & > p {
172
- display: block;
226
+ display: inline-block;
173
227
  padding-left: 3em;
174
228
  }
175
229
 
@@ -182,6 +236,10 @@
182
236
  font-size: 2em;
183
237
  }
184
238
 
239
+ & > ul {
240
+ margin-left: 3em;
241
+ }
242
+
185
243
  li {
186
244
  @include themed() {
187
245
  color: t('quote-secondary');
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.3.5
4
+ version: 1.5.1
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-10-03 00:00:00.000000000 Z
11
+ date: 2021-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 13.0.6
97
- - !ruby/object:Gem::Dependency
98
- name: rake-release
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 1.3.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 1.3.0
111
97
  description:
112
98
  email:
113
99
  - miguel-gonzalez@gmx.de
@@ -118,6 +104,7 @@ files:
118
104
  - LICENSE
119
105
  - README.md
120
106
  - _includes/author.html
107
+ - _includes/avatar.html
121
108
  - _includes/disqus.html
122
109
  - _includes/footer.html
123
110
  - _includes/head.html