From 79acfcf1599496e67b20c39c00a100b07c383ab1 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 16 Mar 2019 17:43:05 +0100 Subject: theme: Add terrassa theme --- themes/terrassa/layouts/_default/card.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 themes/terrassa/layouts/_default/card.html (limited to 'themes/terrassa/layouts/_default/card.html') diff --git a/themes/terrassa/layouts/_default/card.html b/themes/terrassa/layouts/_default/card.html new file mode 100644 index 0000000..6a184f1 --- /dev/null +++ b/themes/terrassa/layouts/_default/card.html @@ -0,0 +1,28 @@ +
+
+

+ + {{ .Title }} + +

+ {{ if ne .Type "page" }} + {{ if and $.Site.Params.posts.showDate $.Site.Params.posts.showAuthor }} +

+ {{ dateFormat $.Site.Params.posts.dateFormat .Date }} By {{ $.Params.author }}. +

+ {{ else if $.Site.Params.posts.showDate }} +

{{ dateFormat $.Site.Params.posts.dateFormat .Date }}

+ {{ else if $.Site.Params.posts.showAuthor }} +

By {{ $.Params.author }}.

+ {{ end }} + {{ end }} +
+ +
+ {{ .Content | truncate 480 }} +
+ + +
\ No newline at end of file -- cgit v1.2.3