willamette 0.10.2 → 0.10.4
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/automations/layouts.automation.rb +1 -1
- data/components/willamette/pagination.erb +2 -2
- data/components/willamette/post_item.css +9 -1
- data/components/willamette/post_item.rb +1 -1
- data/components/willamette/previous_next.erb +2 -2
- data/lib/willamette/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10a8351e25e910af9b6f268466430267fdc3f38b3dbadcd13fa9fdb79cc2bfac
|
|
4
|
+
data.tar.gz: c247dc2e455333ac230cf2f0ac38503838094c6d43fc39098f32e7de7f4c4f1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 577dd3f2a721d605514420d4f11b99012d80c3da3b5062feddd2d6780335bfded3f3b080d75f5c0c0abc5b346a3c4ea67bc4b36e7b548f2df9918673724acc20
|
|
7
|
+
data.tar.gz: 144290868c0a83939dbb6e39ec2affa175fc911dc0070dfd7a4d82d6da76133693d267ce936e33767cca59da4a3c949cc2405623e5f367fa120d44660b2ee6f9
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- ...
|
|
11
11
|
|
|
12
|
+
## [0.10.4] - 2026-05-26
|
|
13
|
+
|
|
14
|
+
- Improve display of pagination links
|
|
15
|
+
|
|
16
|
+
## [0.10.3] - 2026-05-25
|
|
17
|
+
|
|
18
|
+
- Fixes for the display of post summaries
|
|
19
|
+
|
|
12
20
|
## [0.10.2] - 2026-05-25
|
|
13
21
|
|
|
14
22
|
- Geez. Have to account for headings blocked from the ToC in the scroll logic
|
data/Gemfile.lock
CHANGED
|
@@ -44,7 +44,7 @@ create_file "src/_layouts/post.erb" do <<~ERB
|
|
|
44
44
|
image_caption = data.image.is_a?(String) ? nil : data.image.caption
|
|
45
45
|
%>
|
|
46
46
|
<figure class="<%= data.image_bleed ? "inline-bleed" : "" %>">
|
|
47
|
-
<img src="<%= image_path %>" alt="" />
|
|
47
|
+
<img src="<%= image_path %>" alt="<%= image_alt %>" />
|
|
48
48
|
<% if image_caption %>
|
|
49
49
|
<figcaption><%= markdownify image_caption %></figcaption>
|
|
50
50
|
<% end %>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<ul class="pagination" data-pagefind-ignore>
|
|
2
2
|
<li>
|
|
3
3
|
<% if paginator.previous_page %>
|
|
4
|
-
<a href="<%= paginator.previous_page_path %>"><wa-icon label="<%= t "labels.previous" %>" name="circle-chevron-left"></wa-icon
|
|
4
|
+
<a href="<%= paginator.previous_page_path %>"><wa-icon label="<%= t "labels.previous" %>" name="circle-chevron-left"></wa-icon> <%= t "content.posts.newer_posts" %></a>
|
|
5
5
|
<% end %>
|
|
6
6
|
</li>
|
|
7
7
|
<li>
|
|
8
8
|
<% if paginator.next_page %>
|
|
9
|
-
<a href="<%= paginator.next_page_path %>"><%= t "content.posts.more_posts"
|
|
9
|
+
<a href="<%= paginator.next_page_path %>"><%= t "content.posts.more_posts" %> <wa-icon label="<%= t "labels.next" %>" name="circle-chevron-right"></wa-icon></a>
|
|
10
10
|
<% end %>
|
|
11
11
|
</li>
|
|
12
12
|
</ul>
|
|
@@ -7,7 +7,6 @@ wll-post-item {
|
|
|
7
7
|
> time {
|
|
8
8
|
min-width: 5ch;
|
|
9
9
|
text-align: right;
|
|
10
|
-
font-size: var(--wa-font-size-s);
|
|
11
10
|
margin-block-start: 0.175em;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
@@ -73,6 +72,15 @@ wll-post-item {
|
|
|
73
72
|
margin-block-end: var(--wa-space-s);
|
|
74
73
|
}
|
|
75
74
|
}
|
|
75
|
+
|
|
76
|
+
hgroup > p {
|
|
77
|
+
margin-block-end: calc(var(--wa-content-spacing) / 2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
time {
|
|
81
|
+
display: block;
|
|
82
|
+
font-size: var(--wa-font-size-s);
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
|
|
78
86
|
.wa-dark wll-post-item:not([headline-only]) {
|
|
@@ -82,7 +82,7 @@ class Willamette::PostItem < Bridgetown::Component
|
|
|
82
82
|
"<h#{@heading_level}>#{text contents, ->{ strip_html | smartify }}</h#{@heading_level}>"
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
def summary = @post.data.subtitle || @post.data.description || @post.summary
|
|
85
|
+
def summary = @post.data.subtitle || @post.data.description || strip_html(@post.summary)
|
|
86
86
|
|
|
87
87
|
def timestamp(date = @post.data.date)
|
|
88
88
|
"<time>#{text date.to_date, -> { l format: :short }}</time>"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<ul class="pagination" data-pagefind-ignore>
|
|
2
2
|
<li>
|
|
3
3
|
<% if resource.previous_resource %>
|
|
4
|
-
<a href="<%= resource.previous_resource.relative_url %>"><wa-icon label="<%= t "labels.previous" %>" name="circle-chevron-left"></wa-icon
|
|
4
|
+
<a href="<%= resource.previous_resource.relative_url %>"><wa-icon label="<%= t "labels.previous" %>" name="circle-chevron-left"></wa-icon> <%= resource.previous_resource.data.title %></a>
|
|
5
5
|
<% end %>
|
|
6
6
|
</li>
|
|
7
7
|
<li>
|
|
8
8
|
<% if resource.next_resource %>
|
|
9
|
-
<a href="<%= resource.next_resource.relative_url %>"><%= resource.next_resource.data.title
|
|
9
|
+
<a href="<%= resource.next_resource.relative_url %>"><%= resource.next_resource.data.title %> <wa-icon label="<%= t "labels.next" %>" name="circle-chevron-right"></wa-icon></a>
|
|
10
10
|
<% end %>
|
|
11
11
|
</li>
|
|
12
12
|
</ul>
|
data/lib/willamette/version.rb
CHANGED
data/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "willamette",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "willamette",
|
|
9
|
-
"version": "0.10.
|
|
9
|
+
"version": "0.10.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@awesome.me/webawesome": ">=3.6.0",
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: willamette
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bridgetown Team
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-05-
|
|
10
|
+
date: 2026-05-26 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: bridgetown
|