scim-docs/themes/Indiiie/layouts/shortcodes/implementation.html
2024-09-17 23:14:22 +02:00

26 lines
No EOL
771 B
HTML

<div class="space-between card flex implementation {{ if .Get "type"}}{{ .Get "type" }}{{ end }}" data-type="{{ if .Get "type"}}{{ .Get "type" }}{{ end }}">
<div class="flex">
{{ .Inner | markdownify }}
{{ if .Get "type" }}
<p>
{{ $types := split (.Get "type") " " }}
{{ range $types }}
<span class="type {{ . }} marked-color">{{ . }}</span>
{{ end }}
</p>
{{ end }}
{{ if .Get "devs" }}
<p class="devs">Devs: {{ .Get "devs" }}</p>
{{ end }}
</div>
<div class="flex">
{{ if .Get "link" }}
<a class="btn lv1" target="_blank" href="{{ .Get "link" }}">specs ↗</a>
{{ else }}
<p class="btn draft marked-color"><em>à venir...</em></p>
{{ end }}
</div>
</div>