Commit Graph

8 Commits

Author SHA1 Message Date
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
EricFromCanada 60c82cb518 Allow for ampersand in title or URL
Because `page.title` (and `page.url`) is already escaped and page titles served by lunrjs do not need escaping, ampersands need to be unescaped to display properly in search results.
2019-01-16 00:31:30 -05:00
EricFromCanada 9a4ea76957 Improve search content generator 2019-01-15 22:54:30 -05:00
EricFromCanada 793ea356c3 Use `unless` loop for comma
and mention `search_exclude`
2019-01-15 20:48:52 -05:00
Patrick Marsceill f17700afe3
Better search index 2019-01-06 15:51:17 -05:00
Patrick Marsceill 954e8941bb
Accidental reversal 2018-12-16 15:23:33 -05:00
Patrick Marsceill eb0a6c328f
Allow pages to be excluded from search 2018-12-16 14:47:41 -05:00
Patrick Marsceill 62c7ac4729
Add done after creating content 2018-10-23 13:09:23 -04:00