mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
Docs: add details shortcode (#279)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
11
docSite/layouts/shortcodes/details.html
Normal file
11
docSite/layouts/shortcodes/details.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $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>
|
Reference in New Issue
Block a user