Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 (8 sloc)
236 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $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 }} |