{{define "quote info" -}} | |
{{- with (yaml .info)}} | |
<div class="QuoteBlock"> | |
<p class="QuoteBlock-body"> | |
{{markdown .quote}} | |
</p> | |
{{- if .author}} | |
<div class="QuoteBlock-author"> | |
{{- with .link}} | |
<a class="QuoteBlock-link" href="{{.}}" target="_blank" rel="noopener"> | |
{{- end}} | |
— {{.author}} | |
{{- if .title}}, <span>{{.title}}</span>{{end}} | |
{{- with .link}} | |
</a> | |
{{- end -}} | |
</div> | |
{{- end}} | |
</div> | |
{{- end}} | |
{{end}} |