mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-11 03:53:08 +00:00
32 lines
1.1 KiB
HTML
32 lines
1.1 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"
|
|
"msg" " Invalid arguments"
|
|
"details" ($args.errmsg | append $args.warnmsg)
|
|
"file" page.File
|
|
)}}
|
|
{{- end -}}
|
|
|
|
{{/* Main code */}}
|
|
{{ if not $args.error }}
|
|
{{ partial "assets/hero.html" (dict
|
|
"heading" $args.heading
|
|
"background" $args.background
|
|
"illustration" (merge (dict "ratio" "1x1") $args.illustration)
|
|
"order" $args.order
|
|
"link-type" $args.linkType
|
|
"links" $args.links
|
|
"orientation" "horizontal"
|
|
"width" (or .width 8)
|
|
)
|
|
}}
|
|
{{- end -}}
|