mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-15 12:56:57 +01:00
b9ec18d78e
Add the epigraph shortcode. This should complete the Tufte-CSS specific shortcodes. Additionally, the section and div shortcodes were refactored for ease of use.
9 lines
253 B
HTML
9 lines
253 B
HTML
{{ $loc := .Get 0 }}
|
|
{{ if .IsNamedParams }}
|
|
<section {{with .Get "class"}} class="{{.}}"{{end}}{{with .Get "id"}} id="{{.}}"{{end}}>
|
|
{{ else if or (eq $loc "") (eq $loc "begin") }}
|
|
<section>
|
|
{{ else if eq $loc "end" }}
|
|
</section>
|
|
{{ end }}
|
|
|