Skip to content

Commit 7c1e02e

Browse files
authored
Merge pull request #1682 from gethinode/templatev2
Templatev2
2 parents 5e6b42d + 811c3f9 commit 7c1e02e

File tree

7 files changed

+21
-6
lines changed

7 files changed

+21
-6
lines changed

component-library/components/articles/articles.bookshop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ blueprint:
4242
subtle:
4343
scroll:
4444
bento:
45+
animated:
46+
styles:
47+
- ratio:
48+
orientation:
49+
stacked:
50+
portrait:
51+
width:
4552
cover:
4653
header-style:
4754
body-style:

component-library/components/articles/articles.hugo.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@
4545
(dict "ratio" "1x1" "orientation" "stacked" "portrait" false "width" "3")
4646
}}
4747

48+
{{ if gt (len $args.styles) 0 }}
49+
{{ $styles = $args.styles }}
50+
{{ end }}
51+
4852
<!-- Define more button -->
4953
{{ $moreButton := site.Params.modules.bookshop.articles.moreButton | default false }}
50-
{{ $moreTitle := T "more" (pluralize $args.input.section) }}
54+
{{ $title := or $args.input.section $args.input.categories (T "article") }}
55+
{{ $moreTitle := T "more" (pluralize $title) }}
5156
{{ $moreLink := $args.input.section }}
5257
{{ $moreType := "button" }}
5358
{{ $moreIcon := "" }}
@@ -98,6 +103,7 @@
98103
"gutter" 1
99104
"ratio" "1x1"
100105
"orientation" "horizontal-sm"
106+
"animated" $args.animated
101107
"styles" (cond $args.bento $styles "")
102108
) -}}
103109
{{ else }}

component-library/components/team/team.hugo.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838

3939
<!-- Define more button -->
4040
{{ $moreButton := site.Params.modules.bookshop.team.moreButton | default false }}
41-
{{ $moreTitle := T "more" (pluralize $args.input.section) }}
41+
{{ $title := or $args.input.section $args.input.categories (T "article") }}
42+
{{ $moreTitle := T "more" (pluralize $title) }}
4243
{{ $moreLink := $args.input.section }}
4344
{{ $moreType := "button" }}
4445
{{ $moreIcon := "" }}

data/structures/card-group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ arguments:
6666
styles:
6767
release: v0.27.0
6868
optional: true
69-
type: dict
69+
type: styles
7070
button-label:
7171
release: v1.0.0
7272
more-link-icon:

data/structures/stack.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ arguments:
8787
Enables card animations.
8888
release: v0.27.0
8989
styles:
90-
type:
91-
- '[]map[string]interface {}'
90+
type: styles
9291
optional: true
9392
comment: >-
9493
Styles to apply to the individual cards. Supported elements are `ratio`,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/gethinode/mod-lottie/v2 v2.0.0 // indirect
1616
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
1717
github.com/gethinode/mod-simple-datatables/v3 v3.0.0 // indirect
18-
github.com/gethinode/mod-utils/v5 v5.0.0 // indirect
18+
github.com/gethinode/mod-utils/v5 v5.1.0 // indirect
1919
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
2020
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
2121
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ github.com/gethinode/mod-utils/v4 v4.21.6 h1:txvb0yHA9aIhP4IEHmxzAt3hpeuAJZZDIfC
6868
github.com/gethinode/mod-utils/v4 v4.21.6/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
6969
github.com/gethinode/mod-utils/v5 v5.0.0 h1:iF8FtgzQu9BW7R94sJ77gltSZO2QkAv60EMNvtTSpIA=
7070
github.com/gethinode/mod-utils/v5 v5.0.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU=
71+
github.com/gethinode/mod-utils/v5 v5.1.0 h1:wHc/lb8n1x51FtMPief99KTrdIOadoJ+bbXBvsvqOKs=
72+
github.com/gethinode/mod-utils/v5 v5.1.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU=
7173
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 h1:55phPhe6fDjfjG0jX4+br3nLORKgjgx8abZUdI0YJRA=
7274
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
7375
github.com/twbs/bootstrap v5.3.8+incompatible h1:eK1fsXP7R/FWFt+sSNmmvUH9usPocf240nWVw7Dh02o=

0 commit comments

Comments
 (0)