Files
schnittfest/tpl/service_item.html
2026-10-14 19:29:31 +02:00

12 lines
509 B
HTML

{{- $title := copy .Page .Content "title" -}}
{{- $text := copy .Page .Content "text" -}}
{{- $color := default (get .Content "color") "red" -}}
<article class="slate slate--{{ $color }}" data-component="reveal" data-shifu-element="{{ .Content.Position }}">
<div class="slate__clapper" aria-hidden="true"></div>
<div class="slate__body">
{{ with $title }}<h3 class="slate__title">{{ . }}</h3>{{ end }}
{{ with $text }}<p class="slate__text">{{ . }}</p>{{ end }}
</div>
</article>