+ add training page (add admonition shortcode)
+ Finish translation + clean unused asset
This commit is contained in:
6
themes/tse/layouts/shortcodes/admonition.html
Normal file
6
themes/tse/layouts/shortcodes/admonition.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{- $type := cond .IsNamedParams (.Get "type") (.Get 0) | default "note" -}}
|
||||
{{- $title := cond .IsNamedParams (.Get "title") (.Get 1) | default (T $type) -}}
|
||||
{{- $open := cond .IsNamedParams (.Get "open") (.Get 2) -}}
|
||||
{{- partial "plugin/admonitionPre.html" (dict "Type" $type "Title" $title "Open" $open) -}}
|
||||
{{- .Inner | .Page.RenderString -}}
|
||||
{{- partial "plugin/admonitionPost.html" -}}
|
||||
Reference in New Issue
Block a user