forked from mirrors/hugo-tufte
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.
8 lines
236 B
HTML
8 lines
236 B
HTML
{{ $loc := .Get 0 }}
|
|
{{ if .IsNamedParams }}
|
|
<div {{with .Get "class"}} class="{{.}}"{{end}}{{with .Get "id"}} id="{{.}}"{{end}}>
|
|
{{ else if or (eq $loc "") (eq $loc "begin") }}
|
|
<div>
|
|
{{ else if eq $loc "end" }}
|
|
</div>
|
|
{{ end }}
|