diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index b14203c..1abdc7d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -4,7 +4,7 @@
{{ range .Pages.ByDate.Reverse }}
- {{ partial "post.html" . }}
+ {{ partial "post.html" (dict "page" .) }}
{{ end }}
{{ end }}
diff --git a/layouts/favorites/single.html b/layouts/favorites/single.html
index 5865f27..8c96c06 100644
--- a/layouts/favorites/single.html
+++ b/layouts/favorites/single.html
@@ -4,7 +4,7 @@
{{ range (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
- {{ if .Params.favorite }}{{ partial "post.html" . }}{{ end }}
+ {{ if .Params.favorite }}{{ partial "post.html" (dict "page" .) }}{{ end }}
{{ end }}
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 1386dcc..ade63a3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,7 +4,7 @@
{{ i18n "recentPosts" }}:
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
- {{ partial "post.html" . }}
+ {{ partial "post.html" (dict "page" .) }}
{{ end }}
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index 62f004b..840928b 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -1,12 +1,12 @@
- {{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }}
- {{ if (not (eq .WordCount 0)) }}
- {{ i18n "nWords" .WordCount }}, {{ i18n "nMinutesToRead" .ReadingTime }}.
+ {{ if .page.Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .page.Title }}
+ {{ if (not (eq .page.WordCount 0)) }}
+ {{ i18n "nWords" .page.WordCount }}, {{ i18n "nMinutesToRead" .page.ReadingTime }}.
{{ end }}
- {{ if .Params.status }}
+ {{ if .page.Params.status }}
- {{ partial "seriesstatus.html" .Params.status }}
+ {{ partial "seriesstatus.html" .page.Params.status }}
{{ end }}
- {{ .Summary }} {{ if .Truncated }}. . .{{ end }}
+ {{ .page.Summary }} {{ if .page.Truncated }}. . .{{ end }}
diff --git a/layouts/series/list.html b/layouts/series/list.html
index 0662877..37bfd36 100644
--- a/layouts/series/list.html
+++ b/layouts/series/list.html
@@ -11,7 +11,7 @@
{{ range $pages }}
- {{ partial "post.html" . }}
+ {{ partial "post.html" (dict "page" .) }}
{{ end }}
{{ end }}
diff --git a/layouts/series/terms.html b/layouts/series/terms.html
index 22efad2..a8d55ed 100644
--- a/layouts/series/terms.html
+++ b/layouts/series/terms.html
@@ -4,7 +4,7 @@
{{ range sort .Pages "Title" }}
- {{ partial "post.html" . }}
+ {{ partial "post.html" (dict "page" .) }}
{{ end }}
{{ end }}
diff --git a/layouts/tags/list.html b/layouts/tags/list.html
index 4383620..731285e 100644
--- a/layouts/tags/list.html
+++ b/layouts/tags/list.html
@@ -3,7 +3,7 @@
{{ range .Pages.ByDate.Reverse }}
- {{ partial "post.html" . }}
+ {{ partial "post.html" (dict "page" .) }}
{{ end }}
{{ end }}