hacks-guide-minimal-mistake.../_layouts
Michael Rose 2080469952 Show 4 latest posts when site.related_posts is nil
`site.related_posts` should return an array of latest posts when no related ones are found due to `lsi` being disabled (GitHub Page's doesn't support it).

This works around that bug by showing the 4 latest posts to populate the "You May Also Enjoy" module when enabled with `related: true`.

Fixes #554
Related: #978 #1022
2017-09-05 13:02:37 -04:00
..
archive-taxonomy.html Replace base_path with absolute_url filter where possible 2016-10-06 15:40:30 -04:00
archive.html Add video header support to archive and splash layouts 2017-01-24 10:09:22 -05:00
compress.html Add compress.html layout 2016-02-22 22:03:47 -05:00
default.html Bump 💎 to 4.5.1 2017-08-18 15:19:24 -04:00
home.html Replace base_path with absolute_url filter 2016-11-04 12:50:03 -04:00
single.html Show 4 latest posts when site.related_posts is nil 2017-09-05 13:02:37 -04:00
splash.html Replace modified with last_modified_at (#930) 2017-04-04 09:12:32 -04:00