From 605fc4dd9114203866fdc25452380dfc7f3ea4c1 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Fri, 19 Apr 2019 00:28:53 +0100 Subject: [PATCH] fix: page resource links not displayed Fix v4.2.2 Fix #1036 --- layouts/partials/li_card.html | 4 ++-- layouts/partials/li_citation.html | 4 ++-- layouts/partials/li_compact.html | 4 ++-- layouts/partials/li_list.html | 2 +- layouts/partials/page_header.html | 6 +++--- layouts/partials/project_li_showcase.html | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/layouts/partials/li_card.html b/layouts/partials/li_card.html index 513a5fe3..caa0fe6d 100644 --- a/layouts/partials/li_card.html +++ b/layouts/partials/li_card.html @@ -51,7 +51,7 @@ {{ end }} {{ else }} - {{ partial "page_metadata" (dict "content" $item "is_list" 1) }} + {{ partial "page_metadata" (dict "page" $item "is_list" 1) }} {{ end }} {{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} @@ -75,7 +75,7 @@ {{ if $show_buttons }} {{ end }} diff --git a/layouts/partials/li_citation.html b/layouts/partials/li_citation.html index 16fe995d..4a34adf1 100644 --- a/layouts/partials/li_citation.html +++ b/layouts/partials/li_citation.html @@ -14,7 +14,7 @@ {{ else if .Params.publication }} {{- .Params.publication | markdownify -}}. {{ end }} -

{{ partial "page_links" (dict "content" . "is_list" 1) }}

+

{{ partial "page_links" (dict "page" . "is_list" 1) }}

{{/* MLA Style */}} {{ else }} @@ -29,7 +29,7 @@ {{- .Params.publication | markdownify -}}, {{ end }} {{- .Date.Format "2006" -}}. -

{{ partial "page_links" (dict "content" . "is_list" 1) }}

+

{{ partial "page_links" (dict "page" . "is_list" 1) }}

{{ end }} diff --git a/layouts/partials/li_compact.html b/layouts/partials/li_compact.html index 89d58cb5..242b5f4e 100644 --- a/layouts/partials/li_compact.html +++ b/layouts/partials/li_compact.html @@ -66,13 +66,13 @@ {{ partial "page_metadata_authors" $item }} {{ else if not $show_authors_only }} - {{ partial "page_metadata" (dict "content" $item "is_list" 1) }} + {{ partial "page_metadata" (dict "page" $item "is_list" 1) }} {{ end }} {{ if $show_buttons }} {{ end }} diff --git a/layouts/partials/li_list.html b/layouts/partials/li_list.html index 8f13ef5d..11ddfee7 100644 --- a/layouts/partials/li_list.html +++ b/layouts/partials/li_list.html @@ -49,7 +49,7 @@ {{ if $show_buttons }} {{ end }} diff --git a/layouts/partials/page_header.html b/layouts/partials/page_header.html index cd2b641f..1101149e 100644 --- a/layouts/partials/page_header.html +++ b/layouts/partials/page_header.html @@ -47,7 +47,7 @@

{{ . | markdownify | emojify }}

{{end}} - {{ partial "page_metadata" (dict "content" $page "is_list" 0) }} + {{ partial "page_metadata" (dict "page" $page "is_list" 0) }} {{ partial "page_links_div.html" $page }} @@ -70,7 +70,7 @@

{{ . | markdownify | emojify }}

{{end}} - {{ partial "page_metadata" (dict "content" $page "is_list" 0 "share" true) }} + {{ partial "page_metadata" (dict "page" $page "is_list" 0 "share" true) }} {{ partial "page_links_div.html" $page }} {{else}} @@ -89,7 +89,7 @@ {{end}} {{ if not .IsNode }} - {{ partial "page_metadata" (dict "content" $page "is_list" 0 "share" true) }} + {{ partial "page_metadata" (dict "page" $page "is_list" 0 "share" true) }} {{ partial "page_links_div.html" $page }} {{end}} diff --git a/layouts/partials/project_li_showcase.html b/layouts/partials/project_li_showcase.html index 81b06189..0e884959 100644 --- a/layouts/partials/project_li_showcase.html +++ b/layouts/partials/project_li_showcase.html @@ -40,7 +40,7 @@ {{ end }}