feat: use latex hugo template
This commit is contained in:
parent
1d12f5614d
commit
9004c27ceb
56 changed files with 1666 additions and 2 deletions
4
layouts/shortcodes/sidenote.html
Normal file
4
layouts/shortcodes/sidenote.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ $id := md5 .Inner }}
|
||||
<label for="{{ $id }}" class="sidenote-toggle sidenote-number"></label>
|
||||
<input type="checkbox" id="{{ $id }}" class="sidenote-toggle" />
|
||||
<span class="sidenote">{{ .Inner }}</span>
|
9
layouts/shortcodes/table.html
Normal file
9
layouts/shortcodes/table.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ $htmlTable := .Inner | markdownify }}
|
||||
{{ $old := "<table>" }}
|
||||
{{ $new := "" }}
|
||||
{{ $title := .Get "title" }}
|
||||
{{ if $title }}
|
||||
{{ $new = printf "<table><caption>%s</caption>" ($title | markdownify) }}
|
||||
{{ end }}
|
||||
{{ $htmlTable := replace $htmlTable $old $new }}
|
||||
{{ $htmlTable | safeHTML }}
|
Loading…
Add table
Add a link
Reference in a new issue