Avoid listing non-blog pages on listings
parent
0e9e3c01a7
commit
78131aab23
|
@ -10,10 +10,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="columns is-multiline is-mobile">
|
<div class="columns is-multiline is-mobile">
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
|
{{ if (eq .FirstSection.Section "posts")}}
|
||||||
<div class="column is-one-third">
|
<div class="column is-one-third">
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{- partial "pagination.html" . -}}
|
{{- partial "pagination.html" . -}}
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in New Issue