mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 06:53:11 +00:00
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{{/*
|
|
Copyright © 2025 The Hinode Team / Mark Dumay. All rights reserved.
|
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
|
Visit gethinode.com/license for more details.
|
|
*/}}
|
|
|
|
{{/* Initialize arguments */}}
|
|
{{ $args := partial "utilities/InitArgs.html" (dict "bookshop" "about" "args" .) }}
|
|
{{ if or $args.err $args.warnmsg }}
|
|
{{ partial (cond $args.err "utilities/LogErr.html" "utilities/LogWarn.html") (dict
|
|
"partial" "component-library/components/about/about.hugo.html"
|
|
"warnid" "warn-invalid-arguments"
|
|
"msg" "Invalid arguments"
|
|
"details" ($args.errmsg | append $args.warnmsg)
|
|
"file" page.File
|
|
)}}
|
|
{{- end -}}
|
|
|
|
{{/* Main code */}}
|
|
{{ if not $args.error }}
|
|
{{ partial "assets/hero.html" (dict
|
|
"page" page
|
|
"heading" $args.heading
|
|
"background" $args.background
|
|
"illustration" (merge (dict "ratio" "auto") $args.illustration)
|
|
"order" $args.order
|
|
"link-type" $args.linkType
|
|
"links" $args.links
|
|
"orientation" "horizontal"
|
|
"width" (or $args.width 8)
|
|
)
|
|
}}
|
|
{{- end -}}
|