mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-16 14:33:10 +00:00
34 lines
1.1 KiB
HTML
34 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" "hero" "args" .) }}
|
|
{{ if or $args.err $args.warnmsg }}
|
|
{{ partial (cond $args.err "utilities/LogErr.html" "utilities/LogWarn.html") (dict
|
|
"partial" "component-library/components/hero/hero.hugo.html"
|
|
"msg" " Invalid arguments"
|
|
"details" ($args.errmsg | append $args.warnmsg)
|
|
"file" page.File
|
|
)}}
|
|
{{ end }}
|
|
|
|
{{ if not $args.err }}
|
|
{{ partial "assets/hero.html" (dict
|
|
"breadcrumb" $args.breadcrumb
|
|
"heading" $args.heading
|
|
"background" $args.background
|
|
"illustration" $args.illustration
|
|
"align" $args.align
|
|
"order" $args.order
|
|
"overlay-mode" $args.overlayMode
|
|
"cover" $args.cover
|
|
"link-type" $args.linkType
|
|
"links" $args.links
|
|
"orientation" $args.orientation
|
|
"width" $args.width
|
|
)
|
|
}}
|
|
{{ end }} |