mirror of
https://github.com/imfing/hextra.git
synced 2025-07-05 23:07:17 -04:00
Update layouts/shortcodes/hextra/hero-section.html
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
{{- $style := .Get "style" -}}
|
||||
{{- $header := int (strings.TrimPrefix "h" (.Get "header" | default "h2")) -}}
|
||||
{{- $heading := int (strings.TrimPrefix "h" (.Get "heading" | default "h2")) -}}
|
||||
{{- $size := cond (ge $header 4) "xl" (cond (eq $header 3) "2xl" "4xl") -}}
|
||||
|
||||
<h{{ $header }}
|
||||
|
Reference in New Issue
Block a user