Skip to content

Commit

Permalink
#76 セクションのインデックスページも表示に入っていたのを除去
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiseiYokoyama committed Dec 1, 2019
1 parent b1dac96 commit 5097ddd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/post/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
</section>
<aside class="flex-ns flex-wrap justify-around mt5">
{{ range (.Paginate (where .Site.Pages "Section" "post") 9).Pages }}
<div class="relative w-100 w-30-l mb4 bg-white">
{{ if ne .Kind "section" }}
<div class="relative w-100 w-30-l mb4 bg-white">
{{/*
Note we can use `.Render` here for items just in this section, instead of a partial to pull in items for the list page. https://gohugo.io/functions/render/
*/}}
{{ .Render "summary" }}
</div>
{{ end }}
{{ end }}
</aside>
{{ template "_internal/pagination.html" . }}
Expand Down

0 comments on commit 5097ddd

Please sign in to comment.