feat(code): add support for code block folding (#259)
This commit is contained in:
@@ -67,21 +67,17 @@
|
||||
|
||||
{{- /* Static TOC */ -}}
|
||||
{{- if $params.toc.enable -}}
|
||||
<div class="toc" id="toc-static">
|
||||
<details>
|
||||
<summary>
|
||||
<div class="toc-title">
|
||||
<span>{{ T "contents" }}</span>
|
||||
<span><i class="details icon fas fa-angle-down"></i></span>
|
||||
</div>
|
||||
</summary>
|
||||
<div class="toc-content" id="toc-content-static">
|
||||
{{- $toc := .TableOfContents -}}
|
||||
{{- $toc = partial "function/fontawesome.html" $toc -}}
|
||||
{{- $toc = partial "function/ruby.html" $toc -}}
|
||||
{{- $toc | safeHTML -}}
|
||||
</div>
|
||||
</details>
|
||||
<div class="details toc" id="toc-static">
|
||||
<div class="details-summary toc-title">
|
||||
<span>{{ T "contents" }}</span>
|
||||
<span><i class="details-icon fas fa-angle-down"></i></span>
|
||||
</div>
|
||||
<div class="details-content toc-content" id="toc-content-static">
|
||||
{{- $toc := .TableOfContents -}}
|
||||
{{- $toc = partial "function/fontawesome.html" $toc -}}
|
||||
{{- $toc = partial "function/ruby.html" $toc -}}
|
||||
{{- $toc | safeHTML -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user