jekyll-dash 1.4.0 → 1.5.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: de1ce65b9f22f8f2fac3eb380d4d048a63aff7865d0963674eb2ee3c43bc77ad
4
- data.tar.gz: d4fef6add938fcf99a1143de0756ce247757698da720753c3a8bc778211347ed
3
+ metadata.gz: df0f39301e659c4eccf39d3ea95fe379240e09eed9263115231eb12bbf689572
4
+ data.tar.gz: fa83e2b057f22f867a404c574115cef12c3f95b61851f646b59e1ebd90d3ff12
5
5
  SHA512:
6
- metadata.gz: 7d81ecb6c79bc93472ef5f52e118497951fc2cccc3a7c8b2f4496759261c85b35b13c68bebe78abd04a85162ff7c0588484c140fb61924a03ac4415d99f9c25d
7
- data.tar.gz: f83f385497777dba2de1af56f64c2a0a9bef8f46a557096e7138811ba5d594daff473c2f5e258009c0a8b547c4754251ed2ce38f9e2681a22035ae3b3ff960d6
6
+ metadata.gz: '081d5172841184bbbcf307ed86e4c86423ed73e9d17f82da6d2cb328103e54c4724fc3259e01a8846e67f60ad9aa61e2c91d58f2b24c85901d39b190ad2b3776'
7
+ data.tar.gz: ed45a3941b0cc37de4280e8d7ba1f8228553e2686acc4a5636ce08453ca5e14bfd0755881a366b468dd85fc39e2385d061cbfb3cdc25a6cb595d97ebd8241cf1
data/README.md CHANGED
@@ -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,12 +91,9 @@ 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
 
@@ -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.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
 
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.4.0
4
+ version: 1.5.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-05 00:00:00.000000000 Z
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