My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #3 from hauleth/fix-theme

Theme fixes needed after updating Hugo

authored by

Łukasz Jan Niemier and committed by
GitHub
7f8b39b8 d0fd68e7

+6 -1
+6 -1
themes/terminal/layouts/_default/list.html
··· 2 2 <div class="posts"> 3 3 {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} 4 4 {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} 5 - {{ $paginator := .Paginate (where .Data.Pages "Type" $contentTypeName) }} 5 + 6 + {{ $PageContext := . }} 7 + {{ if .IsHome }} 8 + {{ $PageContext = .Site }} 9 + {{ end }} 10 + {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} 6 11 7 12 {{ range $paginator.Pages }} 8 13 <div class="post on-list">