summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/card.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/partials/card.html')
-rw-r--r--themes/conspiracy/layouts/partials/card.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/partials/card.html b/themes/conspiracy/layouts/partials/card.html
new file mode 100644
index 0000000..167a9d5
--- /dev/null
+++ b/themes/conspiracy/layouts/partials/card.html
@@ -0,0 +1,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>