diff --git a/themes/thomasba/layouts/index.html b/themes/thomasba/layouts/index.html index 8482f42..fd70b15 100644 --- a/themes/thomasba/layouts/index.html +++ b/themes/thomasba/layouts/index.html @@ -52,8 +52,10 @@ {{ end }} - {{ if and $.Site.Params.include_rss $.RSSLink }} - + {{ with .OutputFormats.Get "RSS" }} + {{ if and $.Site.Params.include_rss .RelPermalink }} + + {{ end }} {{ end }} @@ -74,7 +76,7 @@
- {{ $totalpostscount := len (.Data.Pages) }} + {{ $totalpostscount := len (.Site.RegularPages) }} {{ $latestpostscount := .Site.Params.latestpostscount | default $totalpostscount }} {{ if gt $latestpostscount 0 }}