4o1x5.dev/layouts/shortcodes/filetree/folder.html
2005 84df8d1671 remote deployments blog:
added a whole guide for getting started with nix remote deployments
fixed shortcodes view (still needs work)
2024-05-07 22:40:10 +02:00

16 lines
624 B
HTML

{{- $name := .Get "name" -}}
{{- $state := .Get "state" | default "open" }}
<li class="hx-group hx-flex hx-list-none hx-flex-col">
<button class="hextra-filetree-folder hx-inline-flex hx-cursor-pointer hx-items-center hx-py-1 hover:hx-opacity-60">
<span data-state="{{ $state }}" class="data-[state=open]:hx-hidden">
</span>
<span data-state="{{ $state }}" class="data-[state=closed]:hx-hidden">
</span>
<span class="ltr:hx-ml-1 rtl:hx-mr-1">{{ $name }}</span>
</button>
<ul data-state="{{ $state }}" class="ltr:hx-pl-5 rtl:hx-pr-5 data-[state=closed]:hx-hidden">
{{- .Inner -}}
</ul>
</li>