Commit Graph

32 Commits

Author SHA1 Message Date
coezbek c942cfd71a
Accessibility update on the tile images (#125) 2021-03-26 17:20:21 -04:00
tfwyouloveher 6269d60959
Fixed tile descriptions 2020-02-21 20:39:23 -07:00
Meitar M 4e4f981b8c
Fix bug where some pages where not shown as tiles.
This commit refactors the `tiles.html` include file so that when the
`site.tiles-source` is pages, pages with `show_tile: false` set in their
Front Matter are not counted as having been shown. Prior to this commit,
such pages were iterated over in the `for` loop, consuming a loop
iteration from the `site.tiles-count` counter.

Put another way, say you have set `tiles-count` to 6, and you have a
total of 10 pages. Of these ten pages, six have `show_tile` set to
`false`. The natural expectation would be that the home page layout
would display four tiles (10 - 6 = 4), but in fact, the exact number of
page tiles shown would depend on the specific lexicographical ordering
of the `site.html_pages` array, which could result in fewer than four
page tiles being shown.

This commit fixes the issue by excluding pages with `show_tile` set to
`false` first, and only then iterating over the remaining pages.
2020-01-31 14:21:40 -05:00
Andrew Banchich 49ab386a3d Fix bug causing non-HTML pages to be displayed in tiles. 2020-01-12 20:31:35 -05:00
Andrew Banchich 548b8385f2 Fix Home, All Posts, and 404 pages displaying in tiles 2018-09-09 16:53:34 +00:00
Andrew Banchich a6259c1274 Bugfix for 404 page showing in All Pages list 2018-08-05 14:35:00 -04:00
Andrew Banchich 0ce7482420 fixes path issues for locally served sites 2017-01-08 19:00:52 -05:00
Andrew Banchich c251befb59 Update tiles.html 2016-11-25 19:45:34 +00:00
Andrew Banchich df49421490 Update tiles.html 2016-11-25 19:41:19 +00:00
Andrew Banchich f8a063daf2 Update tiles.html 2016-11-25 19:41:02 +00:00
Andrew Banchich 53c0591f1e Update tiles.html 2016-08-26 02:42:59 +00:00
Andrew Banchich e1300a960d Update tiles.html 2016-08-26 02:39:06 +00:00
Andrew Banchich b54d577a1b Update tiles.html 2016-08-26 02:33:38 +00:00
Andrew Banchich 5f0d08f189 Update tiles.html 2016-08-26 02:28:10 +00:00
Andrew Banchich 043909a42e Update tiles.html 2016-08-26 02:18:46 +00:00
Andrew Banchich bfb63e5d63 Update tiles.html 2016-08-26 02:16:43 +00:00
Andrew Banchich 88978fe1df Update tiles.html 2016-08-26 02:13:29 +00:00
Andrew Banchich d581a504c9 Update tiles.html 2016-08-26 02:08:39 +00:00
Andrew Banchich 084e11748f Update tiles.html 2016-08-26 02:08:23 +00:00
Andrew Banchich 0da0e1b242 Update tiles.html 2016-08-26 02:05:53 +00:00
Andrew Banchich 22dbd8ab2e Update tiles.html 2016-08-26 02:03:28 +00:00
Andrew Banchich 8c5ff804f2 Update tiles.html 2016-08-26 01:57:24 +00:00
Andrew Banchich 709e63681a Update tiles.html 2016-08-26 01:57:10 +00:00
Andrew Banchich 4d0915e216 Update tiles.html 2016-08-26 01:51:44 +00:00
Andrew Banchich b946adbd28 Update tiles.html 2016-08-26 01:49:43 +00:00
Andrew Banchich 684dafda19 Update tiles.html 2016-08-26 01:47:52 +00:00
Andrew Banchich ca7759dce1 Update tiles.html 2016-08-26 01:45:44 +00:00
Andrew Banchich 27ecb0dfb3 Update tiles.html 2016-08-26 01:43:10 +00:00
Andrew Banchich ca36b83e7e Update tiles.html 2016-08-26 01:35:27 +00:00
Andrew Banchich 848f828042 Update tiles.html 2016-08-26 00:07:38 +00:00
Andrew Banchich 674fa2ca86 Update tiles.html 2016-08-25 23:19:51 +00:00
Andrew Banchich dfa4ec1cd6 Adds page tiles functionality 2016-08-25 23:15:01 +00:00