1
0
Fork 0
forked from mirrors/hugo-tufte

refine blockquote & epigraph

This commit is contained in:
loikein 2023-04-17 23:14:50 +01:00
commit bb73762987
3 changed files with 14 additions and 15 deletions
layouts/shortcodes

View file

@ -1,6 +1,8 @@
<blockquote cite="{{ .Get "cite" }}">
<p>
{{ .Inner | markdownify }}
</p>
<footer>{{ .Get "footer" }}{{ with .Get "cite" }}, <cite>{{ . }}</cite>{{ end }}</footer>
{{ .Inner | $.Page.RenderString (dict "display" "block") }}
<footer>
{{- with .Get "author" -}}{{ . }}{{- end -}}
{{- with .Get "cite" -}}, <cite>{{ . | markdownify }}</cite>{{- end -}}
{{- with .Get "detail" -}}, {{ . | markdownify }}{{- end -}}
</footer>
</blockquote>