Skip to content

Commit 7c9fa68

Browse files
committed
Merge branch 'hotfix/6.0.1' into production
2 parents de6ec65 + 066c1cd commit 7c9fa68

File tree

12 files changed

+48
-51
lines changed

12 files changed

+48
-51
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [6.0.1](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v6.0.0...v6.0.1) (2023-05-19)
6+
7+
8+
### Bug Fixes
9+
10+
* **home:** preview image missing `[alt]` and `img_path` ([#1044](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1044)) ([aba9468](https://github.com/cotes2020/jekyll-theme-chirpy/commit/aba9468b5332802db961166889d4c4a84e404a2c))
11+
* **layout:** restore the margin bottom of the main area ([#1047](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1047)) ([eb40f51](https://github.com/cotes2020/jekyll-theme-chirpy/commit/eb40f51c84b011a7c301279527f544ad27efd5eb))
12+
* **post, page:** image link loses shimmer effect ([#1046](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1046)) ([3bd881d](https://github.com/cotes2020/jekyll-theme-chirpy/commit/3bd881da70d685d10659f47bfe0e79cd02e7af92))
13+
* **typography:** long string for update-list is not truncated ([#1050](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1050)) ([a51d31c](https://github.com/cotes2020/jekyll-theme-chirpy/commit/a51d31c55a37fbe034f0b0f699f4df0b6a14ba8f)), closes [#1049](https://github.com/cotes2020/jekyll-theme-chirpy/issues/1049)
14+
515
## [6.0.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.6.1...v6.0.0) (2023-05-16)
616

717

_includes/post-paginator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- The paginator for post list on HomgPage. -->
22

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">
44
<!-- left arrow -->
55
{% if paginator.previous_page %}
66
{% assign prev_url = paginator.previous_page_path | relative_url %}

_includes/refactor-content.html

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<!--
2-
Refactor the HTML structure.
3-
-->
1+
<!-- Refactor the HTML structure -->
42

53
{% assign _content = include.content %}
64

@@ -44,9 +42,9 @@
4442
{% endif %}
4543

4644
<!-- images -->
45+
{% assign IMG_TAG = '<img ' %}
4746

48-
{% if _content contains '<img' %}
49-
{% assign IMG_TAG = '<img ' %}
47+
{% if _content contains IMG_TAG %}
5048
{% assign _img_content = nil %}
5149
{% assign _img_snippets = _content | split: IMG_TAG %}
5250

@@ -160,7 +158,15 @@
160158
<!-- Bypass the HTML-proofer test -->
161159
{% assign _left = _left | append: ' data-proofer-ignore' %}
162160

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 %}
164170
<!-- make sure the `<img>` is wrapped by `<a>` -->
165171
{% assign _parent = _right | slice: 1, 4 %}
166172

@@ -179,16 +185,6 @@
179185
{% assign _img_content = _img_content | append: _wrapper_start %}
180186
{% assign _right = _right | prepend: '></a' %}
181187
{% 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' %}
192188
{% endif %}
193189

194190
<!-- combine -->

_includes/update-list.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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. -->
42

53
{% assign MAX_SIZE = 5 %}
64

@@ -26,12 +24,12 @@
2624
{% if update_list.size > 0 %}
2725
<div id="access-lastmod" class="post">
2826
<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">
3028
{% for item in update_list %}
3129
{% assign index = item | split: '::' | last | plus: 0 %}
3230
{% assign post = site.posts[index] %}
3331
{% assign url = post.url | relative_url %}
34-
<li>
32+
<li class="text-truncate lh-lg">
3533
<a href="{{ url }}">{{ post.title }}</a>
3634
</li>
3735
{% endfor %}

_layouts/home.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@
4848
{% if post.image.lqip %}
4949
{% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
5050
{% 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 }}>
5260
{% endif %}
5361

5462
<div class="card-body d-flex flex-column">

_layouts/page.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
{% include lang.html %}
66
{% include origin-type.html %}
77

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 %}">
913
<!-- core -->
1014
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
1115
{% capture padding %}
@@ -52,7 +56,7 @@ <h1 class="dynamic-title">
5256
</div>
5357

5458
<!-- tail -->
55-
{% if layout.tail_includes %}
59+
{% if has_tail %}
5660
<div class="row">
5761
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
5862
{% for _include in layout.tail_includes %}

_sass/addon/commons.scss

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,6 @@ i {
255255
}
256256

257257
#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-
268258
a {
269259
&:hover {
270260
@extend %link-hover;
@@ -1113,10 +1103,6 @@ $btn-mb: 0.5rem;
11131103
@extend %no-bottom-border;
11141104
}
11151105
}
1116-
1117-
@at-root .row:only-child > #{&} {
1118-
padding-bottom: 3rem;
1119-
}
11201106
}
11211107

11221108
#mask {

_sass/jekyll-theme-chirpy.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Chirpy v6.0.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
2+
* Chirpy v6.0.1 (https://github.com/cotes2020/jekyll-theme-chirpy)
33
* © 2019 Cotes Chung
44
* MIT Licensed
55
*/

_sass/layout/home.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
#post-list {
66
margin-top: 2rem;
77

8-
&:only-child {
9-
margin-bottom: 3.75rem;
10-
}
11-
128
a.card-wrapper {
139
display: block;
1410

jekyll-theme-chirpy.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-theme-chirpy"
5-
spec.version = "6.0.0"
5+
spec.version = "6.0.1"
66
spec.authors = ["Cotes Chung"]
77
spec.email = ["[email protected]"]
88

0 commit comments

Comments
 (0)