mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-24 22:39:45 +01:00
13 lines
338 B
HTML
13 lines
338 B
HTML
|
{{ $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>
|