From b1d4dd7a3277a3bf40a9d68d9619ccc807f1bcdb Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 16 Jun 2024 19:35:07 -0700 Subject: [PATCH] Adjust post.html to take a dict Signed-off-by: Danila Fedorin --- layouts/_default/list.html | 2 +- layouts/favorites/single.html | 2 +- layouts/index.html | 2 +- layouts/partials/post.html | 12 ++++++------ layouts/series/list.html | 2 +- layouts/series/terms.html | 2 +- layouts/tags/list.html | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) 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 @@ {{ 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 @@ {{ 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" }}: 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 @@ {{ 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 @@ {{ 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 @@ {{ end }}