Permalink
Browse files

Fixed bug with listing of contents (that was showing all posts instea…

…d of the selection)
  • Loading branch information...
Bernard `Guyzmo` Pratz
Bernard `Guyzmo` Pratz committed Sep 4, 2016
1 parent 8c20598 commit 215fd1c05d42a22be6e647673464c296b725b635
@@ -1,8 +1,15 @@
{{ partial "header" . }}
{{ partial "navigation" . }}

{{ if eq .Title "Blogs" }}
{{ .Scratch.Add "pages" .Site.Pages }}
{{ else }}
{{ .Scratch.Add "pages" .Data.Pages }}
{{ end }}

<div class="container clearfix">
<main role="main" class="content">
{{ $paginator := .Paginate (where .Site.Pages "Type" "!=" "ignore") }}
{{ $paginator := .Paginate (where (.Scratch.Get "pages") "Type" "post") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
@@ -6,8 +6,8 @@
<a href="{{ .Site.BaseURL }}/{{ .Section }}">{{ .Section }}/</a><a href="{{ .Permalink }}">{{ slicestr (.UniqueID) 0 6 }}</a>
{{ end }}
{{ if .IsNode }}
{{ if .Data.Plural }}
{{ if eq .Data.Plural "tags" }}
{{ if eq .Data.Plural "tags" }}
{{ if eq .Title "Tags" }}
<a href="{{ .Site.BaseURL }}/tags">tags/</a>
{{ else }}
<a href="{{ .Site.BaseURL }}/tags">tags/</a><a href="#">{{ .Title | singularize | lower }}/</a>

0 comments on commit 215fd1c

Please sign in to comment.