Browse Source

Merge pull request #15 from di-dc/sanitize-ingredients-in-search-index

sanitize ingredients when adding to search index
master
Clark Wimberly 3 years ago
committed by GitHub
parent
commit
c86800fa66
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      search.json

2
search.json

@ -5,7 +5,7 @@
{
"title" : "{{ post.title | escape }}",
{% if post.ingredients %}"ingredients" : "{% for ingredient in post.ingredients %}{{ ingredient }}, {% endfor %}",{% endif %}
{% if post.ingredients %}"ingredients" : "{% for ingredient in post.ingredients %}{{ ingredient | escape }}, {% endfor %}",{% endif %}
"image" : "{{ post.image }}",
"url" : "{{ site.baseurl }}{{ post.url }}"

Loading…
Cancel
Save