summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/card.html
blob: 167a9d56eb73c8ee08f5f7103ab6b42f0ae70044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="card">
    {{- if .Title }}<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>{{- end }}
    {{- if .Date }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}

    <div class="summary">
        {{ .Summary | safeHTML }}
        <a href="{{ .Permalink }}">Read more</a>
    </div>
 
    {{- if .Params.external_links }}
    <div class="links">
        {{- range .Params.external_links }}
        <a href="{{ .url }}">{{ .name }}</a>
        {{- end }}
    </div>
    {{- end }}
</div>