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 }}

*/}} +
+
+
+