Przeglądaj źródła

feat: show button links in listings irrespective of Type

Extend scope to include Portfolio's Card view.
George Cushen 4 lat temu
rodzic
commit
b6dc6d8777
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      wowchemy/layouts/partials/portfolio_li_card.html

+ 8 - 1
wowchemy/layouts/partials/portfolio_li_card.html

@@ -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>