diff --git a/layouts/shortcodes/paige/hero.html b/layouts/shortcodes/paige/hero.html new file mode 100644 index 00000000..4762fc08 --- /dev/null +++ b/layouts/shortcodes/paige/hero.html @@ -0,0 +1,58 @@ +{{ $alt := .Get "alt" }} +{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }} +{{ $header := .Get "header" | markdownify }} +{{ $height := .Get "height" }} +{{ $image := .Get "image" }} +{{ $imageclass := .Get "imageclass" }} +{{ $maxheight := .Get "maxheight" | default "20rem" }} +{{ $maxwidth := .Get "maxwidth" }} +{{ $page := .Page }} +{{ $stretch := .Get "stretch" }} +{{ $title := .Get "title" }} +{{ $width := .Get "width" }} + +
+ {{ partial "paige/img.html" (dict + "alt" $alt + "class" $imageclass + "height" $height + "fetchpriority" "high" + "loading" "eager" + "maxheight" $maxheight + "maxwidth" $maxwidth + "page" $page + "src" . + "style" $style + "title" $title + "width" $width + ) }} +
+ {{ end }} + + {{ with $header }} +{{ . }}
+ {{ end }} + + {{ with $content }} +{{ . }}
+