diff --git a/_includes/git-wiki/defines/defines.html b/_includes/git-wiki/defines/defines.html index b00210ed9..b3f1bdcfb 100644 --- a/_includes/git-wiki/defines/defines.html +++ b/_includes/git-wiki/defines/defines.html @@ -1,4 +1,4 @@ -{% assign version = "2.8.0" %} +{% assign version = "2.8.1" %} {% capture lchar %}{{page.url | slice: -1, 1}}{% endcapture %} {% capture url %} {% if lchar == "/" %}{{page.url}}index.html{% else %}{{ page.url | default: 'index.html' }}{% endif%} diff --git a/assets/js/searchdata.js b/assets/js/searchdata.js index 7c46fed84..a27f3ff69 100644 --- a/assets/js/searchdata.js +++ b/assets/js/searchdata.js @@ -11,7 +11,7 @@ var jsondata=[ "tags" : "{{ post.tags | join: ', ' }}", "url" : "{{ site.baseurl }}{{ post.url }}", "date" : "{{ post.date }}", - "content" : "{{ post.content | strip_html | strip_newlines | remove: '"' }}" + "content" : {{ page.content | jsonify }} } {% unless forloop.last %},{% endunless %} {% endfor %} , @@ -24,7 +24,7 @@ var jsondata=[ "tags" : "{{ page.tags | join: ', ' }}", "url" : "{{ site.baseurl }}{{ page.url }}", "date" : "{{ page.date }}", - "content" : "{{ page.content | strip_html | strip_newlines | remove: '"' }}" + "content" : {{ page.content | jsonify }} {% endif %} } {% unless forloop.last %},{% endunless %} {% endfor %}