diff --git a/layouts/shortcodes/hextra/hero-section.html b/layouts/shortcodes/hextra/hero-section.html new file mode 100644 index 0000000..09afa48 --- /dev/null +++ b/layouts/shortcodes/hextra/hero-section.html @@ -0,0 +1,10 @@ +{{- $style := .Get "style" -}} +{{- $header := int (strings.TrimPrefix "h" (.Get "header" | default "h2")) -}} +{{- $size := cond (ge $header 4) "xl" (cond (eq $header 3) "2xl" "4xl") -}} + + + {{ .Inner | markdownify }} +