diff --git a/wowchemy/layouts/partials/functions/render_view.html b/wowchemy/layouts/partials/functions/render_view.html index 73a5058d..7eacab72 100644 --- a/wowchemy/layouts/partials/functions/render_view.html +++ b/wowchemy/layouts/partials/functions/render_view.html @@ -7,14 +7,16 @@ {{ $view_dtype := printf "%T" $view }} {{ $index := .index }} -{{if eq $view_dtype "int" }} +{{if eq $view_dtype "int" | or (eq $view_dtype "int64") }} {{/* Support legacy numeric views 1-4 */}} {{ if eq $view 1 }} - {{ $view_file = "list" }} + {{ $view_file = "list" }} {{ else if eq $view 3 }} - {{ $view_file = "card" }} + {{ $view_file = "card" }} {{ else if eq $view 4 }} - {{ $view_file = "citation" }} + {{ $view_file = "citation" }} + {{ else if eq $view 5 }} + {{ $view_file = "showcase" }} {{ else }} {{ $view_file = "compact" }} {{ end }} diff --git a/wowchemy/layouts/partials/portfolio_li_card.html b/wowchemy/layouts/partials/portfolio_li_card.html deleted file mode 100644 index b1e12cf8..00000000 --- a/wowchemy/layouts/partials/portfolio_li_card.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ $item := .item }} -{{ $widget := .widget }} -{{ $link := .link }} -{{ $target := .target }} -{{ $has_attachments := partial "functions/has_attachments" $item }} - -{{/* Get summary. */}} -{{ $summary := "" }} -{{ if $item.Params.summary }} - {{ $summary = $item.Params.summary | markdownify | emojify }} -{{ else if .Params.abstract }} - {{ $summary = .Params.abstract | markdownify | emojify | truncate (site.Params.abstract_length | default 135) }} -{{ else if $item.Summary }} - {{ $summary = $item.Summary }} -{{ end }} - -{{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} -{{ $js_tag_classes := delimit (apply (apply $item.Params.tags "replace" "." " " "-") "printf" "js-id-%s" ".") " " }} - -
{{ . }}
-{{.}}
{{ . }}
+