jekyll-theme-chirpy 6.0.0 → 6.0.1

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: a51cd90b237fc572b7b23851320135b74b0c7cfb965bf99787a9e83de85bdbe6
4
- data.tar.gz: 31fd2c52408919f0cff071995cac7a928d78833d0934dadc10287be7e59c2e7c
3
+ metadata.gz: ffcef6f0312a152d93a1332d6aaf364635957bad093323f63611ca1c6434e41c
4
+ data.tar.gz: 54316d0547310e7d33b54ee95f92782d7fa6bb372348e7b4380e9d7f1f372b43
5
5
  SHA512:
6
- metadata.gz: 3dcb84a1810ee65514b35a1c352b96c122cb2576c2edc4babe8e16e7c760ccc450a9e07ea6653cac754a7e92f09abb2a788306e9315015c66d1b23b4d60eca84
7
- data.tar.gz: e5f10b57eb0c6261765346e8691d3626b711a432cc589d6da8b65c6c923d1e1d3ae32ec502f59d585ac0b804a93583e48678a88254db7bcf076c68925ebb1c16
6
+ metadata.gz: c7c7aaf3ff24f3ec45649a2ecc18ad89d016eacb95cabdfe50a07322d572ed17a64614706d2f9330fb70d5a340dae71f7d99c7a5a16c6fe18d1452aa4e06cc0c
7
+ data.tar.gz: bc634c36a37c4bc3b083b691efd04adf3d05880995e95b8b9626322c6e235d46810eb53766d8b8ab7b3cb2cfc87cdbf7b332d862152059615c8c93529f926c3e
@@ -1,6 +1,6 @@
1
1
  <!-- The paginator for post list on HomgPage. -->
2
2
 
3
- <ul class="pagination align-items-center my-4 ps-lg-2">
3
+ <ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
4
4
  <!-- left arrow -->
5
5
  {% if paginator.previous_page %}
6
6
  {% assign prev_url = paginator.previous_page_path | relative_url %}
@@ -1,6 +1,4 @@
1
- <!--
2
- Refactor the HTML structure.
3
- -->
1
+ <!-- Refactor the HTML structure -->
4
2
 
5
3
  {% assign _content = include.content %}
6
4
 
@@ -44,9 +42,9 @@
44
42
  {% endif %}
45
43
 
46
44
  <!-- images -->
45
+ {% assign IMG_TAG = '<img ' %}
47
46
 
48
- {% if _content contains '<img' %}
49
- {% assign IMG_TAG = '<img ' %}
47
+ {% if _content contains IMG_TAG %}
50
48
  {% assign _img_content = nil %}
51
49
  {% assign _img_snippets = _content | split: IMG_TAG %}
52
50
 
@@ -160,7 +158,15 @@
160
158
  <!-- Bypass the HTML-proofer test -->
161
159
  {% assign _left = _left | append: ' data-proofer-ignore' %}
162
160
 
163
- {% if page.layout == 'post' %}
161
+ {% if page.layout == 'home' %}
162
+ <!-- create the image wrapper -->
163
+ {%- capture _wrapper_start -%}
164
+ <div class="preview-img {{ _class | strip }}">
165
+ {%- endcapture -%}
166
+ {% assign _img_content = _img_content | append: _wrapper_start %}
167
+ {% assign _right = _right | prepend: '></div' %}
168
+
169
+ {% else %}
164
170
  <!-- make sure the `<img>` is wrapped by `<a>` -->
165
171
  {% assign _parent = _right | slice: 1, 4 %}
166
172
 
@@ -179,16 +185,6 @@
179
185
  {% assign _img_content = _img_content | append: _wrapper_start %}
180
186
  {% assign _right = _right | prepend: '></a' %}
181
187
  {% endif %}
182
-
183
- {% endif %}
184
-
185
- {% if page.layout == 'home' %}
186
- <!-- create the image wrapper -->
187
- {%- capture _wrapper_start -%}
188
- <div class="preview-img {{ _class | strip }}">
189
- {%- endcapture -%}
190
- {% assign _img_content = _img_content | append: _wrapper_start %}
191
- {% assign _right = _right | prepend: '></div' %}
192
188
  {% endif %}
193
189
 
194
190
  <!-- combine -->
@@ -1,6 +1,4 @@
1
- {% comment %}
2
- Get the last 5 posts from lastmod list.
3
- {% endcomment %}
1
+ <!-- Get the last 5 posts from lastmod list. -->
4
2
 
5
3
  {% assign MAX_SIZE = 5 %}
6
4
 
@@ -26,12 +24,12 @@
26
24
  {% if update_list.size > 0 %}
27
25
  <div id="access-lastmod" class="post">
28
26
  <div class="panel-heading">{{- site.data.locales[include.lang].panel.lastmod -}}</div>
29
- <ul class="post-content ps-0 pb-1 ms-1 mt-2">
27
+ <ul class="post-content list-unstyled ps-0 pb-1 ms-1 mt-2">
30
28
  {% for item in update_list %}
31
29
  {% assign index = item | split: '::' | last | plus: 0 %}
32
30
  {% assign post = site.posts[index] %}
33
31
  {% assign url = post.url | relative_url %}
34
- <li>
32
+ <li class="text-truncate lh-lg">
35
33
  <a href="{{ url }}">{{ post.title }}</a>
36
34
  </li>
37
35
  {% endfor %}
data/_layouts/home.html CHANGED
@@ -48,7 +48,15 @@ refactor: true
48
48
  {% if post.image.lqip %}
49
49
  {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
50
50
  {% endif %}
51
- <img src="{{ post.image.path | default: post.image }}" w="15" h="8" {{ lqip }}>
51
+
52
+ {% assign src = post.image.path | default: post.image %}
53
+ {% unless src contains '//' %}
54
+ {% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %}
55
+ {% endunless %}
56
+
57
+ {% assign alt = post.image.alt | default: 'Preview Image' %}
58
+
59
+ <img src="{{ src }}" w="15" h="8" alt="{{ alt }}" {{ lqip }}>
52
60
  {% endif %}
53
61
 
54
62
  <div class="card-body d-flex flex-column">
data/_layouts/page.html CHANGED
@@ -5,7 +5,11 @@ layout: default
5
5
  {% include lang.html %}
6
6
  {% include origin-type.html %}
7
7
 
8
- <div class="row">
8
+ {% if layout.tail_includes %}
9
+ {% assign has_tail = true %}
10
+ {% endif %}
11
+
12
+ <div class="row{% unless has_tail %} mb-5{% endunless %}">
9
13
  <!-- core -->
10
14
  <div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
11
15
  {% capture padding %}
@@ -52,7 +56,7 @@ layout: default
52
56
  </div>
53
57
 
54
58
  <!-- tail -->
55
- {% if layout.tail_includes %}
59
+ {% if has_tail %}
56
60
  <div class="row">
57
61
  <div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
58
62
  {% for _include in layout.tail_includes %}
@@ -255,16 +255,6 @@ i {
255
255
  }
256
256
 
257
257
  #access-lastmod {
258
- li {
259
- height: 1.8rem;
260
- overflow: hidden;
261
- text-overflow: ellipsis;
262
- display: -webkit-box;
263
- -webkit-line-clamp: 1;
264
- -webkit-box-orient: vertical;
265
- list-style: none;
266
- }
267
-
268
258
  a {
269
259
  &:hover {
270
260
  @extend %link-hover;
@@ -1113,10 +1103,6 @@ $btn-mb: 0.5rem;
1113
1103
  @extend %no-bottom-border;
1114
1104
  }
1115
1105
  }
1116
-
1117
- @at-root .row:only-child > #{&} {
1118
- padding-bottom: 3rem;
1119
- }
1120
1106
  }
1121
1107
 
1122
1108
  #mask {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -5,10 +5,6 @@
5
5
  #post-list {
6
6
  margin-top: 2rem;
7
7
 
8
- &:only-child {
9
- margin-bottom: 3.75rem;
10
- }
11
-
12
8
  a.card-wrapper {
13
9
  display: block;
14
10
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-chirpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cotes Chung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-16 00:00:00.000000000 Z
11
+ date: 2023-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll