Skip to content

Commit 19ff300

Browse files
authored
Merge pull request #1744 from gethinode/templatev2
Templatev2
2 parents 051e27f + e9f22a4 commit 19ff300

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/gethinode/mod-lottie/v2 v2.0.0 // indirect
1818
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
1919
github.com/gethinode/mod-simple-datatables/v3 v3.0.0 // indirect
20-
github.com/gethinode/mod-utils/v5 v5.4.2 // indirect
20+
github.com/gethinode/mod-utils/v5 v5.5.0 // indirect
2121
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
2222
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
2323
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ github.com/gethinode/mod-utils/v5 v5.4.1 h1:iaQ8RTvK9p0JevaDW0c84fl/arDnDe2hu8Fm
4242
github.com/gethinode/mod-utils/v5 v5.4.1/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU=
4343
github.com/gethinode/mod-utils/v5 v5.4.2 h1:/FSQ8yJ8rQaRDiA0sgcrrZX/asaFjjJMNap2pvQKZFk=
4444
github.com/gethinode/mod-utils/v5 v5.4.2/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU=
45+
github.com/gethinode/mod-utils/v5 v5.5.0 h1:codE7hGNoORJ6GDOuFDXMDqQjw7yX89lfVHADEWacBs=
46+
github.com/gethinode/mod-utils/v5 v5.5.0/go.mod h1:PwQN4oOjA6k/vet11JueJ9asZMgL0DBa3jyS9tPkBWU=
4547
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 h1:55phPhe6fDjfjG0jX4+br3nLORKgjgx8abZUdI0YJRA=
4648
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
4749
github.com/twbs/bootstrap v5.3.8+incompatible h1:eK1fsXP7R/FWFt+sSNmmvUH9usPocf240nWVw7Dh02o=

layouts/_partials/assets/hero.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
{{ end }}
2121

2222
{{/* Initialize global variables */}}
23-
{{ $arrangement := site.Params.modules.bookshop.title.arrangement }}
24-
{{ if eq $args.order "first" }}{{ $arrangement = "above" }}{{ end }}
2523
{{- $padding := partial "utilities/GetPadding.html" -}}
2624

2725
{{/* Initialize local variables */}}
26+
{{ $arrangement := or $args.heading.arrangement .Params.modules.bookshop.title.arrangement "above" }}
2827
{{ $align := $args.align }}
2928
{{ $class := $args.class | default "" }}
3029
{{ $scale := "" }}

layouts/_partials/head/stylesheet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ $error = true }}
88
{{- end -}}
99
{{- if site.Params.main.build.silenceDeprecations -}}
10-
{{- $silence = (slice "import" "color-functions" "global-builtin") -}}
10+
{{- $silence = (slice "import" "color-functions" "global-builtin" "if-function" "legacy-js-api") -}}
1111
{{- end -}}
1212

1313
{{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}}

layouts/_partials/page/contact.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@
1010
{{- $result := partial "utilities/GetContact" (dict "contact" . "data" $section "language-tag" site.Language.Lang) -}}
1111
{{- with $result -}}
1212
{{- with .RelPermalink }}{{ $link = . }}{{ end -}}
13-
{{- end -}}
1413

15-
{{- partial "assets/contact.html" (dict
16-
"page" $page
17-
"heading" (dict "title" $title "content" (T "contactBody" $contact) "size" 5 "align" $align)
18-
"background" (dict "color" "light")
19-
"order" "first"
20-
"orientation" $orientation
21-
"class" "contact-img"
22-
"contact" .
23-
"links" (slice (dict "title" (T "contactAction") "url" $link "icon" "fas chevron-right"))
24-
"data" site.Params.modules.bookshop.cta.section
25-
) }}
14+
{{- partial "assets/contact.html" (dict
15+
"page" $page
16+
"heading" (dict "title" $title "content" (T "contactBody" $contact) "size" 5 "align" $align)
17+
"background" (dict "color" "light")
18+
"order" "first"
19+
"orientation" $orientation
20+
"class" "contact-img"
21+
"contact" $contact
22+
"links" (slice (dict "title" (T "contactAction") "url" $link "icon" "fas chevron-right"))
23+
"data" site.Params.modules.bookshop.cta.section
24+
) }}
25+
{{ else }}
26+
{{ warnf "Cannot find contact %q on page %q" $contact $page.RelPermalink }}
27+
{{- end -}}
2628
{{ end -}}

0 commit comments

Comments
 (0)