From 2fac73dfacfc04f9e942e7b37e9cffd6dc09c6b5 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Mon, 17 Apr 2017 18:30:22 -0400 Subject: [PATCH] switch home page work with a variety of sections after earlier PR --- layouts/index.html | 2 +- layouts/partials/summary-with-image.html | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/summary-with-image.html diff --git a/layouts/index.html b/layouts/index.html index 69e5529..35ba8fe 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,7 +16,7 @@
{{ range (first 3 $section) }}
- {{ .Render "summary-with-image" }} + {{ partial "summary-with-image.html" }}
{{ end }}
diff --git a/layouts/partials/summary-with-image.html b/layouts/partials/summary-with-image.html new file mode 100644 index 0000000..2831ae1 --- /dev/null +++ b/layouts/partials/summary-with-image.html @@ -0,0 +1,19 @@ +
+ +
+ {{ if .Params.featured_image }} +
+ image from {{ .Title }} +
+ {{ end }} +
+

{{ .Title }}

+

+ {{ .Summary }} +

+ {{/* TODO: add author +

By {{ .Author }}

*/}} +
+
+
+