hugo-tufte/layouts/shortcodes/epigraph.html
2023-04-17 23:14:50 +01:00

12 lines
368 B
HTML

<div class="epigraph">
<blockquote>
{{ .Inner | $.Page.RenderString (dict "display" "block") }}
{{ if .IsNamedParams }}
<footer>
{{- with .Get "author" -}}{{ . }}{{- end -}}
{{- with .Get "cite" -}}, <cite>{{ . | markdownify }}</cite>{{- end -}}
{{- with .Get "detail" -}}, {{ . | markdownify }}{{- end -}}
</footer>
{{ end }}
</blockquote>
</div>