From ccfe49729cc45f32a87552631d4b0e6aeeda5193 Mon Sep 17 00:00:00 2001 From: Xin Date: Tue, 10 Dec 2024 23:56:44 +0000 Subject: [PATCH] Update layouts/shortcodes/hextra/hero-section.html --- layouts/shortcodes/hextra/hero-section.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/hextra/hero-section.html b/layouts/shortcodes/hextra/hero-section.html index 295ef1a..bdb37bf 100644 --- a/layouts/shortcodes/hextra/hero-section.html +++ b/layouts/shortcodes/hextra/hero-section.html @@ -1,6 +1,6 @@ {{- $style := .Get "style" -}} {{- $heading := int (strings.TrimPrefix "h" (.Get "heading" | default "h2")) -}} -{{- $size := cond (ge $header 4) "xl" (cond (eq $header 3) "2xl" "4xl") -}} +{{- $size := cond (ge $heading 4) "xl" (cond (eq $heading 3) "2xl" "4xl") -}}