Merge 368c20e935eb96e9a6a5998c5a2941b9416b286c into 7b7eb0f1f32c401d5f76337b32af4996cfc67d94

This commit is contained in:
Floren Munteanu 2024-10-30 14:50:42 -03:00 committed by GitHub
commit aafec7de34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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") -}}
<h{{ $header }}
class="not-prose hx-text-{{ $size }} hx-font-bold hx-leading-none hx-tracking-tighter md:hx-text-3xl hx-py-2 hx-bg-clip-text hx-text-transparent hx-bg-gradient-to-r hx-from-gray-900 hx-to-gray-600 dark:hx-from-gray-100 dark:hx-to-gray-400"
{{ with $style }}style="{{ . | safeCSS }}"{{ end }}
>
{{ .Inner | markdownify }}
</h{{ $header }}>