소스 검색

fix: feat(project): list associated posts

This commit fixes 3d9a1277a82ded759843395024e531c64437b91c

Fix #793
See #767
George Cushen 6 년 전
부모
커밋
eb5c91f8f1
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      layouts/section/post.html

+ 3 - 4
layouts/section/post.html

@@ -11,13 +11,12 @@
 
   {{ $paginator := .Paginate .Data.Pages }}
   {{ range $paginator.Pages }}
-    {{ $params := dict "post" . }}
     {{ if eq $.Params.list_format 0 }}
-      {{ partial "post_li_simple" $params }}
+      {{ partial "post_li_simple" . }}
     {{ else if eq $.Params.list_format 1 }}
-      {{ partial "post_li_detailed" $params }}
+      {{ partial "post_li_detailed" . }}
     {{ else }}
-      {{ partial "post_li_stream" $params }}
+      {{ partial "post_li_stream" . }}
     {{ end }}
   {{ end }}