diff --git a/layouts/_default/index.html b/layouts/_default/index.html index c47f81c5..3b1284be 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -8,10 +8,14 @@ {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} +{{- if (and $.IsHome (eq $.Site.Params.homeInfoParams.enabled true)) }} +{{- partial "homeInfo.html" . }} +{{ end }} + {{- range $index, $page := $paginator.Pages }} {{- $class := "post-entry" }} -{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }} +{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (ne $.Site.Params.homeInfoParams.enabled true)) }} {{- $class = "first-entry" }} {{- else if .Data.Term }} {{- $class = "post-entry tag-entry" }} diff --git a/layouts/partials/homeInfo.html b/layouts/partials/homeInfo.html new file mode 100644 index 00000000..26d0b0fc --- /dev/null +++ b/layouts/partials/homeInfo.html @@ -0,0 +1,10 @@ +{{ with $.Site.Params.homeInfoParams }} +
+
+

{{ .Title }}

+
+
+

{{ .Content | plainify | htmlUnescape }}...

+
+
+{{end}} \ No newline at end of file