From 624a5cb78fac8d56737596892ccddbcbb58bd02f Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sun, 10 Feb 2019 10:58:39 -0500 Subject: [PATCH] fix: *_format to *_view This fixes 7c2a85c . See #909 See #926 --- layouts/project/single.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/project/single.html b/layouts/project/single.html index 36a05237..401d8661 100644 --- a/layouts/project/single.html +++ b/layouts/project/single.html @@ -22,9 +22,9 @@ {{ if ge $count 1 }}

{{ (i18n "posts") }}

{{ range $items }} - {{ if eq $page.Site.Params.projects.post_format 1 }} + {{ if eq $page.Site.Params.projects.post_view 1 }} {{ partial "li_list" . }} - {{ else if eq $page.Site.Params.projects.post_format 3 }} + {{ else if eq $page.Site.Params.projects.post_view 3 }} {{ partial "post_li_card" . }} {{ else }} {{ partial "post_li_compact" . }} @@ -37,11 +37,11 @@ {{ if ge $pubs_len 1 }}

{{ (i18n "publications") }}

{{ range $items }} - {{ if eq $page.Site.Params.projects.publication_format 1 }} + {{ if eq $page.Site.Params.projects.publication_view 1 }} {{ partial "li_list" . }} - {{ else if eq $page.Site.Params.projects.publication_format 3 }} + {{ else if eq $page.Site.Params.projects.publication_view 3 }} {{ partial "publication_li_card" . }} - {{ else if eq $page.Site.Params.projects.publication_format 4 }} + {{ else if eq $page.Site.Params.projects.publication_view 4 }} {{ partial "publication_li_citation" . }} {{ else }} {{ partial "publication_li_compact" . }} @@ -54,9 +54,9 @@ {{ if ge $talks_len 1 }}

{{ (i18n "talks") }}

{{ range sort $items ".Params.time_start" "desc" }} - {{ if eq $page.Site.Params.projects.talk_format 1 }} + {{ if eq $page.Site.Params.projects.talk_view 1 }} {{ partial "li_list" . }} - {{ else if eq $page.Site.Params.projects.talk_format 3 }} + {{ else if eq $page.Site.Params.projects.talk_view 3 }} {{ partial "talk_li_card" . }} {{ else }} {{ partial "talk_li_compact" . }}