From de40adfcac35dabc24e4af09109c62dfa3f281c6 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Mon, 12 Jun 2017 18:23:20 -0400 Subject: [PATCH] try this --- lib/tasks/search.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/search.rake b/lib/tasks/search.rake index 79b940c..6a49831 100644 --- a/lib/tasks/search.rake +++ b/lib/tasks/search.rake @@ -3,7 +3,7 @@ namespace :search do task :init do puts 'Creating search data json file...' touch 'search-data.json' - content = %Q[{{ page.content | markdownify | strip_html | xml_escape | remove: 'Table of contents' | remove: page.title | strip_newlines | replace: '\', ' ' }}] + content = %Q[{{ page.content | markdownify | strip_html | xml_escape | remove: 'Table of contents' | remove: page.title | strip_newlines | replace: '\\', ' ' }}] File.open('search-data.json', 'w') do |f| f.puts '---