From 615d2211463e073a65b0de60c61ab1184b14b958 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 19 Jun 2019 21:18:55 +0200 Subject: theme: Switch to ananke theme --- themes/ananke/layouts/post/list.html | 21 +++++++++++++++++++++ themes/ananke/layouts/post/summary-with-image.html | 19 +++++++++++++++++++ themes/ananke/layouts/post/summary.html | 15 +++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 themes/ananke/layouts/post/list.html create mode 100644 themes/ananke/layouts/post/summary-with-image.html create mode 100644 themes/ananke/layouts/post/summary.html (limited to 'themes/ananke/layouts/post') diff --git a/themes/ananke/layouts/post/list.html b/themes/ananke/layouts/post/list.html new file mode 100644 index 0000000..73c9b5c --- /dev/null +++ b/themes/ananke/layouts/post/list.html @@ -0,0 +1,21 @@ +{{ define "main" }} +{{/* + This template is the same as the default and is here to demonstrate that if you have a content directory called "post" you can create a layouts directory, just for that section. + */}} +
+
+ {{ .Content }} +
+ + {{ template "_internal/pagination.html" . }} +
+{{ end }} diff --git a/themes/ananke/layouts/post/summary-with-image.html b/themes/ananke/layouts/post/summary-with-image.html new file mode 100644 index 0000000..d72cb35 --- /dev/null +++ b/themes/ananke/layouts/post/summary-with-image.html @@ -0,0 +1,19 @@ +
+ +
+ {{ if .Params.featured_image }} +
+ image from {{ .Title }} +
+ {{ end }} +
+

{{ .Title }}

+
+ {{ .Summary }} +
+ {{/* TODO: add author +

By {{ .Author }}

*/}} +
+
+
+
diff --git a/themes/ananke/layouts/post/summary.html b/themes/ananke/layouts/post/summary.html new file mode 100644 index 0000000..c06c325 --- /dev/null +++ b/themes/ananke/layouts/post/summary.html @@ -0,0 +1,15 @@ +
+ {{ if .Date }} +
+ {{ .Date.Format "January 2, 2006" }} +
+ {{ end }} +

+ + {{ .Title }} + +

+ +
-- cgit v1.2.3