From 819c447fe76f838d219e13fed575e5f88e00cacf Mon Sep 17 00:00:00 2001 From: thomasba Date: Wed, 30 Oct 2019 20:11:05 +0100 Subject: [PATCH] Some adjustments for a newer hugo verion --- themes/thomasba/layouts/index.html | 12 +++++++----- themes/thomasba/layouts/partials/footer.html | 8 +++++--- themes/thomasba/layouts/partials/site-navbar.html | 6 +++--- 3 files changed, 15 insertions(+), 11 deletions(-) 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 }}