blob: 5784f97641e08658937822d5dd7c82e71226d8e3 [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">
“{{markdown .quote}}”
</p>
{{- if .author}}
<div class="BackgroundQuote-author">
<span>&mdash; {{.author}}</span>
{{if .title}},&nbsp;
<span class="BackgroundQuote-title">{{rawhtml .title}}</span>
{{- end}}
{{- if .company}}
<span class="BackgroundQuote-title">&nbsp;at {{.company}}</span>
{{- end}}
</div>
{{- end}}
{{- if .link}}
</a>
{{- end}}
</div>
{{- end}}
{{end}}