blob: aa64dd6fad6a8a2e5ee9dbdb1455a9ffccb1d421 [file] [log] [blame]
{{define "pullquote info" -}}
{{- with (yaml .info)}}
<div class="PullQuote">
<div class="PullQuote-quoteHeader">
<img class="PullQuote-image" src="/images/quote.svg" alt="Quotation mark.">
</div>
<p class="PullQuote-body">
{{markdown .quote}}
</p>
{{- if .author}}
<div class="PullQuote-author">
{{- with .link}}
<a
class="PullQuote-link"
href="{{.}}"
target="_blank"
rel="noopener">
{{- end}}
<span>
&mdash; {{.author -}}
</span>
{{if .title}},&nbsp;
<span class="PullQuote-title">{{rawhtml .title}}</span>
{{- end}}
{{- if .company}}
<span class="PullQuote-title">&nbsp;at {{.company -}}</span>
{{- end}}
{{- with .link}}</a>{{end}}
</div>
{{- end}}
</div>
{{- end}}
{{end}}