mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-14 11:27:39 +08:00
docs: refactor
This commit is contained in:
3
docs/layouts/shortcodes/codeblock.html
Normal file
3
docs/layouts/shortcodes/codeblock.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{- $lang := .Get "lang" | default "text" -}}
|
||||
{{- $content := .Inner | strings.TrimSpace | htmlEscape -}}
|
||||
<pre><code class="language-{{ $lang }}">{{ $content }}</code></pre>
|
||||
Reference in New Issue
Block a user