mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
feat: show button links in listings irrespective of Type
Extend scope to include Portfolio's Card view.
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user