瀏覽代碼

feat: show button links in listings irrespective of Type

For example, if a blog post has an attachment, it will now be linked in the listing as well as in its page header.

May also reduce excess spacing by preventing empty attachment DIV in the case of no attachments/buttons since it now checks if a page has buttons.
George Cushen 4 年之前
父節點
當前提交
2b9041dc87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      wowchemy/layouts/partials/li_citation.html

+ 1 - 1
wowchemy/layouts/partials/li_citation.html

@@ -34,7 +34,7 @@
 
   {{ if $has_attachments }}
   <div class="btn-links">
-    {{ partial "page_links" (dict "page" $item "is_list" 1) }}
+    {{ partial "page_links" (dict "page" . "is_list" 1) }}
   </div>
   {{ end }}