1
0
Fork 0
forked from mirrors/hugo-tufte

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

View file

@ -2,5 +2,5 @@
<p>
{{ .Inner | markdownify }}
</p>
<footer>{{ .Get "footer" }}</footer>
</blockquote>
<footer>{{ .Get "footer" }}{{ with .Get "cite" }}, <cite>{{ . }}</cite>{{ end }}</footer>
</blockquote>

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>

View file

@ -11,5 +11,5 @@
{{ with .Get "post" }}{{ . }}{{ end }}
</footer>
{{ end }}
<blockquote>
</blockquote>
</div>