forked from mirrors/hugo-tufte
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
|
@ -2,5 +2,5 @@
|
|||
<p>
|
||||
{{ .Inner | markdownify }}
|
||||
</p>
|
||||
<footer>{{ .Get "footer" }}</footer>
|
||||
</blockquote>
|
||||
<footer>{{ .Get "footer" }}{{ with .Get "cite" }}, <cite>{{ . }}</cite>{{ end }}</footer>
|
||||
</blockquote>
|
||||
|
|
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>
|
|
@ -11,5 +11,5 @@
|
|||
{{ with .Get "post" }}{{ . }}{{ end }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
<blockquote>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue