1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-24 13:10:18 +01:00
hugo-theme-bootstrap4-blog/layouts/partials
Alan Orth 4b768d9da4
layouts/partials/sidebar.html: Use .Site.RegularPages instead of .Site.Pages
As of Hugo 0.18 .Site.Pages now returns all pages, including pages,
home, taxonomies, etc, and you are expected to filter them by their
"kind". There is a new variable .Site.RegularPages which returns a
range of "regular" pages like in pre-0.18 Hugo.

In this instance we are limiting the range to pages with the type
"post", so our current behavior works, but I'd rather be consistent
with other ranges we're using, like on the homepage and taxonomy
list pages.

See: https://github.com/spf13/hugo/releases/tag/v0.18
2017-01-19 15:08:55 +02:00
..
cookie-consent.html Start using SRI hashes for CSS/JS assets 2017-01-11 10:42:49 +02:00
disqus.html layouts: retab after addition of modelines 2016-11-24 14:39:39 +02:00
head-custom.html Add ability to insert custom code into the global <head>. (#17) 2016-11-22 21:11:50 +02:00
head-meta.html layouts/partials/head-meta.html: Trim whitespace around tags 2017-01-19 14:57:03 +02:00
meta-terms.html layouts: retab after addition of modelines 2016-11-24 14:39:39 +02:00
sharing-icons.html Update margin around sharing icons for Bootstrap v4 Alpha 6 2017-01-09 16:54:20 +02:00
sidebar.html layouts/partials/sidebar.html: Use .Site.RegularPages instead of .Site.Pages 2017-01-19 15:08:55 +02:00