fix: *_format to *_view

This fixes 7c2a85c .

See #909
See #926
This commit is contained in:
Dongdong Tian authored and gcushen committed 2019-02-10 15:58:39 +00:00
1 parent 2588ca95c8
commit 624a5cb78f
1 file changed
+7 -7
+7 -7
View File
@@ -22,9 +22,9 @@
{{ if ge $count 1 }} {{ if ge $count 1 }}
<h2>{{ (i18n "posts") }}</h2> <h2>{{ (i18n "posts") }}</h2>
{{ range $items }} {{ range $items }}
{{ if eq $page.Site.Params.projects.post_format 1 }} {{ if eq $page.Site.Params.projects.post_view 1 }}
{{ partial "li_list" . }} {{ 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" . }} {{ partial "post_li_card" . }}
{{ else }} {{ else }}
{{ partial "post_li_compact" . }} {{ partial "post_li_compact" . }}
@@ -37,11 +37,11 @@
{{ if ge $pubs_len 1 }} {{ if ge $pubs_len 1 }}
<h2>{{ (i18n "publications") }}</h2> <h2>{{ (i18n "publications") }}</h2>
{{ range $items }} {{ range $items }}
{{ if eq $page.Site.Params.projects.publication_format 1 }} {{ if eq $page.Site.Params.projects.publication_view 1 }}
{{ partial "li_list" . }} {{ 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" . }} {{ 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" . }} {{ partial "publication_li_citation" . }}
{{ else }} {{ else }}
{{ partial "publication_li_compact" . }} {{ partial "publication_li_compact" . }}
@@ -54,9 +54,9 @@
{{ if ge $talks_len 1 }} {{ if ge $talks_len 1 }}
<h2>{{ (i18n "talks") }}</h2> <h2>{{ (i18n "talks") }}</h2>
{{ range sort $items ".Params.time_start" "desc" }} {{ 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" . }} {{ 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" . }} {{ partial "talk_li_card" . }}
{{ else }} {{ else }}
{{ partial "talk_li_compact" . }} {{ partial "talk_li_compact" . }}