mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-25 23:09:44 +01:00
9 lines
236 B
HTML
9 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 }}
|