summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/card.html
blob: 65ea2e7869329dd1f2972c2c6b64e62b4c1c91b2 (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 | absURL }}">{{ .name }}</a>
        {{- end }}
    </div>
    {{- end }}
</div>