summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/card.html
blob: 21eeebf8dba69bee089181a1fd669c38bd9c3897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="card">
    {{- if .Title }}<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>{{- end }}
    {{- if and .Date (not (isset (index .Ancestors 0).Params "hide_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>