1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-22 14:06:39 -05:00
notes/assets
Ben Goldhaber c8a8ce3314
Fix trailing comma bug in search-data.json
If you exclude the last page in the site.html_pages through exclude_true you end up violating the assumption in the for loop that the last page won't have a trailing comma. This breaks the json data that is served to the front end.

I removed the forloop.last check and instead assign a temporary variable to check for the first non-excluded page, and then add the comma before the next non-excluded entry.
2019-06-04 18:02:56 -07:00
..
css Import custom overrides Sass before variables are used 2019-03-03 23:01:10 -05:00
images Initial commit 2017-03-26 21:09:19 -04:00
js Fix trailing comma bug in search-data.json 2019-06-04 18:02:56 -07:00