mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-13 14:12:43 +02:00
fix katex, 1 new shortcode, various fixes
This commit is contained in:
parent
e6c63a59cb
commit
e6d583a987
9 changed files with 90 additions and 46 deletions
layouts/shortcodes
12
layouts/shortcodes/cols.html
Normal file
12
layouts/shortcodes/cols.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue