mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 17:46:38 -04:00
17 lines
386 B
HTML
17 lines
386 B
HTML
{{- /*
|
|
A shortcode for displaying a hero subtitle.
|
|
|
|
@param {string} style The style of the subtitle.
|
|
|
|
@example {{< hextra/hero-subtitle >}}{{< /hextra/hero-subtitle >}}
|
|
*/ -}}
|
|
|
|
{{- $style := .Get "style" -}}
|
|
|
|
<p
|
|
class="not-prose hx:text-xl hx:text-gray-600 hx:dark:text-gray-400 hx:sm:text-xl"
|
|
{{ with $style }}style="{{ . | safeCSS }}"{{ end }}
|
|
>
|
|
{{ .Inner | markdownify }}
|
|
</p>
|