Skip to content

Commit

Permalink
Make sure pages in search index do not have HTML extension
Browse files Browse the repository at this point in the history
  • Loading branch information
astorije committed Nov 3, 2018
1 parent 2c02864 commit 1df4721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/search_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ window.search_data = {
{%- assign documents = site.documents | concat: site.pages %}
{%- for document in documents %}
{%- unless document.title %}{% continue %}{% endunless %}
"{{ document.url }}": {
"{{ document.url | remove: ".html" }}": {
"title": "{{ document.title | xml_escape }}",
"category": "{{ document.category | xml_escape }}",
"content": {{ document.content | newline_to_br | strip_newlines | replace: "<br />", " " | strip_html | jsonify }}
Expand Down

0 comments on commit 1df4721

Please sign in to comment.