@@ -32,10 +35,14 @@
- {{ if .Params.featuredImage }}
-
+ {{ with .Resources.GetMatch (index (.Params.images) 0) }}
+ {{ $image := . }}
+ {{ $image := $image.Crop "1280x250" }}
+
{{ end }}
- {{ .Content }}
+
+ {{ .TableOfContents }}
+ {{ .Content | safeHTML }}
diff --git a/layouts/partials/list.html b/layouts/partials/list.html
index 0cb3cd4..8ba65bb 100644
--- a/layouts/partials/list.html
+++ b/layouts/partials/list.html
@@ -11,7 +11,7 @@
{{ .Content }}
{{ range .Paginator.Pages }}
- {{ $image := .Resources.GetMatch .Params.image }}
+ {{ $image := .Resources.GetMatch (index (.Params.images) 0) }}
-
{{ if $image }}
{{ $image := $image.Resize "x350" }}
diff --git a/layouts/partials/page.html b/layouts/partials/page.html
index 7c9a1e4..38d12b4 100755
--- a/layouts/partials/page.html
+++ b/layouts/partials/page.html
@@ -19,8 +19,8 @@
{{ end }}
- {{ $image := .Resources.GetMatch .Params.image }}
- {{ if $image }}
+ {{ if .Params.images }}
+ {{ $image := .Resources.GetMatch (index (.Params.images) 0) }}
{{ $image := $image.Crop "1280x250" }}
{{ end }}