Files
FastGPT/docSite/layouts/shortcodes/details.html
Carson Yang b2b3aa651d Docs: add details shortcode (#279)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
2023-09-11 20:48:14 +08:00

11 lines
388 B
HTML

{{- $title := .Get "title" | default "" -}}
{{- $closed := eq (.Get "closed") "true" | default false -}}
<details class="last-of-type:mb-0 rounded p-2 mt-4 mb-4 group alert-info" {{ if not $closed }}open{{ end }}>
<summary class="p-1 rounded">
<strong>{{ $title | markdownify }}</strong>
</summary>
<div class="mt-3">
{{ .InnerDeindent | markdownify }}
</div>
</details>