diff --git a/layouts/shortcodes/hextra/hero-section.html b/layouts/shortcodes/hextra/hero-section.html index cf495d4..09afa48 100644 --- a/layouts/shortcodes/hextra/hero-section.html +++ b/layouts/shortcodes/hextra/hero-section.html @@ -1,8 +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") -}} -