fix katex, 1 new shortcode, various fixes

This commit is contained in:
loikein 2023-04-14 19:21:10 +01:00
commit e6d583a987
9 changed files with 90 additions and 46 deletions
layouts/shortcodes

View file

@ -0,0 +1,12 @@
{{ $cols := split .Inner "||" }}
{{ $lang := .Get "lang" | default ( .Get 0 ) }}
{{ $lang := split $lang "," }}
<span class="row">
{{ range $indCol,$col := $cols }}
<span class="column" {{ with $lang }} lang="{{ index $lang $indCol }}"{{ end }}>
{{ . | $.Page.RenderString (dict "display" "block") }}
</span>
{{ end }}
</span>