2025-08-15 03:09:58 +02:00
|
|
|
{{- /*
|
|
|
|
A file in a file tree.
|
|
|
|
|
|
|
|
@param {string} name The name of the file.
|
2023-08-16 15:11:03 +01:00
|
|
|
|
2025-08-15 03:09:58 +02:00
|
|
|
@example {{< filetree/file name="_index.md" >}}
|
|
|
|
*/ -}}
|
|
|
|
|
|
|
|
{{- $name := .Get "name" -}}
|
2023-08-16 15:11:03 +01:00
|
|
|
|
2025-03-29 12:51:42 +00:00
|
|
|
<li class="hx:flex hx:list-none">
|
|
|
|
<span class="hx:inline-flex hx:cursor-default hx:items-center hx:py-1">
|
2023-08-16 15:11:03 +01:00
|
|
|
{{- partial "utils/icon" (dict "name" "document-text" "attributes" "width=1em") -}}
|
2025-03-29 12:51:42 +00:00
|
|
|
<span class="hx:ltr:ml-1 hx:rtl:mr-1">{{ $name | markdownify }}</span>
|
2023-08-16 15:11:03 +01:00
|
|
|
</span>
|
|
|
|
</li>
|