File tree Expand file tree Collapse file tree 7 files changed +21
-6
lines changed
component-library/components Expand file tree Collapse file tree 7 files changed +21
-6
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 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 := "" }}
98103 "gutter" 1
99104 "ratio" "1x1"
100105 "orientation" "horizontal-sm"
106+ "animated" $args.animated
101107 "styles" (cond $args.bento $styles "")
102108 ) -}}
103109 {{ else }}
Original file line number Diff line number Diff line change 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 := "" }}
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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`,
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ github.com/gethinode/mod-utils/v4 v4.21.6 h1:txvb0yHA9aIhP4IEHmxzAt3hpeuAJZZDIfC
6868github.com/gethinode/mod-utils/v4 v4.21.6 /go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4 =
6969github.com/gethinode/mod-utils/v5 v5.0.0 h1:iF8FtgzQu9BW7R94sJ77gltSZO2QkAv60EMNvtTSpIA =
7070github.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 =
7173github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 h1:55phPhe6fDjfjG0jX4+br3nLORKgjgx8abZUdI0YJRA =
7274github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 /go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU =
7375github.com/twbs/bootstrap v5.3.8+incompatible h1:eK1fsXP7R/FWFt+sSNmmvUH9usPocf240nWVw7Dh02o =
You can’t perform that action at this time.
0 commit comments