Skip to content

Commit

Permalink
Merge pull request #82 from KaiseiYokoyama/fix/#76
Browse files Browse the repository at this point in the history
#76 セクションのインデックスページも表示に入っていたのを除去
  • Loading branch information
Kaisei Yokoyama authored Dec 1, 2019
2 parents 66b83a0 + 5097ddd commit e55c902
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 e55c902

Please sign in to comment.