1
0
mirror of https://github.com/thangisme/notes.git synced 2024-09-07 00:04:26 -04:00

Merge pull request #84 from novelistparty/master

fix #80 - escape the single quotes in the string
This commit is contained in:
Patrick Marsceill 2019-02-02 11:27:01 -08:00 committed by GitHub
commit 35d7864874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ namespace :search do
{
{% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": {
"id": "{{ forloop.index0 }}",
"title": "{{ page.title | replace: '&', '&' }}",
"content": "'+content+'",
"title": "{{ page.title | replace: \'&\', \'&\' }}",
"content": "\'+content+\'",
"url": "{{ page.url | absolute_url }}",
"relUrl": "{{ page.url }}"
}{% unless forloop.last %},{% endunless %}