jekyll-dash 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/_includes/author.html +7 -17
- data/_includes/avatar.html +16 -0
- data/_layouts/default.html +1 -1
- data/_sass/dash/_layout.scss +58 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52dbc721d2c81abd048030551853ac06eead4bfdae0e3c12e3bc36690dc5a483
|
4
|
+
data.tar.gz: c589475b5cdd507f2ea776256adcec6ce5fd23cae7a0f5a65a0653fcfa1fb570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5718b2a53ec9758f9213a17d91be3aa8c408744c605761ce7b5b4979469815deebfcda6fd1b318e6dfcbb7eb7f2c8096f3c47bf1844ad7521627397023ab64e
|
7
|
+
data.tar.gz: 37ac09da251bfc186ce48c9181efe598408247d9ad04aafa8402c3be4018dec7fc15e3bb27f0f85c403ec3c933680e368e4dc8712f6933302b6d79f0d08df27e
|
data/README.md
CHANGED
@@ -19,14 +19,14 @@ Add this line to your Jekyll site's `Gemfile`:
|
|
19
19
|
|
20
20
|
For **Jekyll 3**:
|
21
21
|
```ruby
|
22
|
-
gem 'jekyll-dash', '~> 1
|
22
|
+
gem 'jekyll-dash', '~> 1'
|
23
23
|
```
|
24
24
|
|
25
25
|
> Keep in mind: Github pages generation only supports Jekyll 3.8 right now.
|
26
26
|
|
27
27
|
For **Jekyll 4**:
|
28
28
|
```ruby
|
29
|
-
gem 'jekyll-dash', '~> 2
|
29
|
+
gem 'jekyll-dash', '~> 2'
|
30
30
|
```
|
31
31
|
|
32
32
|
And add this line to your Jekyll site's `_config.yml`:
|
@@ -61,10 +61,24 @@ tag_page_layout: tag_page
|
|
61
61
|
tag_page_dir: tag
|
62
62
|
|
63
63
|
dash:
|
64
|
+
# the way how dates should be displayed
|
64
65
|
date_format: "%b %-d, %Y"
|
65
66
|
|
67
|
+
# (optional) discqus comment configuration
|
66
68
|
disqus:
|
67
|
-
shortname: <your-disqus-shortname>
|
69
|
+
shortname: <your-disqus-shortname>
|
70
|
+
|
71
|
+
# the animation speed of the post scroll-in effect
|
72
|
+
animation_speed: 50
|
73
|
+
|
74
|
+
# wether to enable Right-to-Left support or not
|
75
|
+
rtl: false
|
76
|
+
|
77
|
+
# Replaces the default avatar provider (gravatar)
|
78
|
+
#avatar_source: github
|
79
|
+
#github_username: bitbrain
|
80
|
+
#avatar_source: local
|
81
|
+
#avatar_path: /assets/avatar.png
|
68
82
|
|
69
83
|
# generate social links in footer
|
70
84
|
# supported colors: green, red, orange, blue, cyan, pink, teal, yellow, indigo, purple
|
@@ -78,12 +92,9 @@ dash:
|
|
78
92
|
- url: https://github.com/bitbrain
|
79
93
|
icon: github-square
|
80
94
|
color: purple
|
81
|
-
|
95
|
+
|
96
|
+
# wether the author box should be displayed or not
|
82
97
|
show_author: true
|
83
|
-
|
84
|
-
# Replaces the default avatar provider (gravatar)
|
85
|
-
#avatar_source: github
|
86
|
-
#github_username: bitbrain
|
87
98
|
```
|
88
99
|
## Using this theme directly on Github Pages
|
89
100
|
|
data/_includes/author.html
CHANGED
@@ -1,19 +1,9 @@
|
|
1
1
|
<div class="author-box">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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.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/_layouts/default.html
CHANGED
data/_sass/dash/_layout.scss
CHANGED
@@ -52,21 +52,75 @@
|
|
52
52
|
}
|
53
53
|
|
54
54
|
/**
|
55
|
-
*
|
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:
|
121
|
+
height: 100%;
|
69
122
|
border-radius: 0.3em;
|
123
|
+
flex: 1;
|
70
124
|
}
|
71
125
|
}
|
72
126
|
|
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: 2.
|
4
|
+
version: 2.3.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-10-
|
11
|
+
date: 2021-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- LICENSE
|
105
105
|
- README.md
|
106
106
|
- _includes/author.html
|
107
|
+
- _includes/avatar.html
|
107
108
|
- _includes/disqus.html
|
108
109
|
- _includes/footer.html
|
109
110
|
- _includes/head.html
|