blob: 5d347eb70e7d8c55b15f1f03c1897e04ec73e615 [file] [log] [blame]
{{define "backgroundquote info" -}}
{{- with (yaml .info)}}
<div class="BackgroundQuote">
{{- with .link}}
<a href="{{.}}" target="_blank" rel="noopener">
{{- end}}
<p class="BackgroundQuote-body">
“{{.quote | markdownify}}”
</p>
{{- if .author}}
<div class="BackgroundQuote-author">
<span>&mdash; {{.author}}</span>
{{if .title}},&nbsp;
<span class="BackgroundQuote-title">{{.title | safeHTML}}</span>
{{- end}}
{{- if .company}}
<span class="BackgroundQuote-title">&nbsp;at {{.company}}</span>
{{- end}}
</div>
{{- end}}
{{- if .link}}
</a>
{{- end}}
</div>
{{- end}}
{{end}}