aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/post.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r--layouts/partials/post.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
new file mode 100644
index 0000000..8eaadee
--- /dev/null
+++ b/layouts/partials/post.html
@@ -0,0 +1,20 @@
+<article class="mw7 center pv4 ph3">
+<a class="db no-underline grow" href= "{{ .RelPermalink }}">
+ <h3 class="f3 baskerville mt0 lh-title near-white">{{.Title }}</h3>
+ <div class="cf">
+ {{ if isset .Params "image" }}
+ {{ $image := resources.Get .Params.image }}
+ {{ $image := $image.Resize (default "320x" .Params.thumbnail_size) }}
+ <div class="fl-ns mb4 mb0-ns pr3-ns">
+ <img src="{{ $image.RelPermalink }}" class="db center">
+ </div>
+ {{ end }}
+ <div class="f5 lh-copy near-white">
+ {{ .Summary }}
+ </div>
+ </div>
+</a>
+{{ if isset .Params "metadata" }}
+{{ partial "metadata.html" . }}
+{{ end }}
+</article>