RaB_site/layouts/partials/homepage/blocks/heading.html
2025-03-25 20:03:30 +01:00

17 lines
540 B
HTML

{{- $fermeture := .item.fermeture -}}
{{- if eq $fermeture 1 -}}
<section class="wrapper style2">
<div class="container">
<header class="major">
<h2>{{ .item.heading }}</h2>
{{- $html := .item.contents | markdownify -}}
{{- if (findRE "<p(?: [^>]*)?>" $html) -}}
{{ $html }}
{{- else -}}
<p>{{ $html }}</p>
{{- end -}}
</header>
</div>
</section>
{{- else -}}
{{- end -}}