feat: show button links in listings irrespective of Type

Extend scope to include Portfolio's Card view.
This commit is contained in:
George Cushen committed 2021-01-16 22:42:00 +00:00
1 parent 2b9041dc87
commit b6dc6d8777
1 file changed
+8 -1
@@ -1,8 +1,8 @@
{{ $item := .item }}
{{ $widget := .widget }}
{{ $link := .link }}
{{ $target := .target }}
{{ $has_attachments := partial "functions/has_attachments" $item }}
{{/* Get summary. */}}
{{ $summary := "" }}
@@ -29,11 +29,18 @@
{{ end }}
<div class="card-text">
<h4><a href="{{ $link }}" {{ $target | safeHTMLAttr }}>{{ $item.Title | markdownify | emojify }}</a></h4>
{{ with $summary }}
<div class="article-style">
<p>{{ . }}</p>
</div>
{{ end }}
{{ if $has_attachments }}
<div class="btn-links">
{{ partial "page_links" (dict "page" $item "is_list" 1) }}
</div>
{{ end }}
</div>
</div>
</div>