Skip to content

Commit

Permalink
Fix #79
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 25, 2020
1 parent 3628afc commit e99c3aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layouts/partials/list.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{{- $pages := .RegularPagesRecursive -}}
{{- $pages := (.Paginate .RegularPagesRecursive).Pages -}}
<div class="container">
{{- if .IsHome -}}
{{- $pages = where .Site.RegularPages "Type" "in" (default (slice "posts") .Site.Params.mainSections) -}}
{{- $sections := default (slice "posts") .Site.Params.mainSections -}}
{{- $pages = where (.Paginate .Site.RegularPages).Pages "Type" "in" $sections -}}
{{- else -}}
{{- partial "breadcrumb" . -}}
{{- partial "sections" . -}}
{{- end -}}
{{- partial "hooks/list-begin" . -}}
<div class="posts mb-4">
{{- range (.Paginate $pages).Pages -}}
{{- range $pages -}}
<article class="post row surface">
{{- if .Params.Images -}}
<div class="post-thumbnail col-md-3 d-flex align-items-center justify-content-center">
Expand Down

0 comments on commit e99c3aa

Please sign in to comment.