mirror of
https://github.com/Kugelschieber/schnittfest.git
synced 2026-11-12 09:02:01 +01:00
12 lines
509 B
HTML
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>
|