소스 검색

fix(widget): People widget broke due to renaming of author -> authors

George Cushen 6 년 전
부모
커밋
32e6009edb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      layouts/partials/widgets/people.html

+ 1 - 1
layouts/partials/widgets/people.html

@@ -20,7 +20,7 @@
     <h2 class="mb-4">{{ . | markdownify }}</h2>
   </div>
 
-  {{ $query := where (where site.Pages "Section" "author") ".Params.user_groups" "intersect" (slice .) }}
+  {{ $query := where (where site.Pages "Section" "authors") ".Params.user_groups" "intersect" (slice .) }}
   {{ range $query }}
 
   {{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }}