forked from mirrors/hugo-tufte
15 lines
420 B
HTML
15 lines
420 B
HTML
<div class="epigraph">
|
|
<blockquote>
|
|
{{ $t := .Get "type" }}
|
|
{{ if eq $t "compact" }}{{ .Inner | markdownify }}{{ else }}<p>{{ .Inner | markdownify }}</p>{{ end }}
|
|
{{ if .IsNamedParams }}
|
|
<footer>
|
|
{{ with .Get "pre" }}{{ . }}{{ end }}
|
|
{{ with .Get "link" }}<a href={{ . }}>{{ end }}
|
|
{{ with .Get "cite" }}<cite>{{ . }}</cite>{{ end }}
|
|
</a>
|
|
{{ with .Get "post" }}{{ . }}{{ end }}
|
|
</footer>
|
|
{{ end }}
|
|
</blockquote>
|
|
</div>
|