diff options
author | Florian Wilkens <gh@1wilkens.org> | 2019-10-29 11:37:56 +0300 |
---|---|---|
committer | Guillermo Guerrero Ibarra <wolf.fox1985@gmail.com> | 2019-10-29 11:37:56 +0300 |
commit | d809b617f8cdf31d49691b26d82e1b1d7fdcb01e (patch) | |
tree | cc51b241ea873420d100f32b0392cb2e1d548805 /layouts | |
parent | a7a7a8aec6873b14a9a66f2cfc60c54cc70956a6 (diff) |
[footer] Show recent posts from all mainSections (#228)
Similar to the `recent_posts.html` partial the footer currently only shows posts from the hardcoded 'blog' type.
This commit changes this to all `mainSections` of the site.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index bdb3a03..d830678 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -19,7 +19,7 @@ <h4>{{ i18n "recentPosts" }}</h4> <div class="blog-entries"> - {{ range first 3 (where .Site.RegularPages "Type" "blog") }} + {{ range first 3 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} <div class="item same-height-row clearfix"> <div class="image same-height-always"> <a href="{{ .Permalink }}"> |