fix search.json and unmangle the minified file to see if we can get through the github pages problem.

This commit is contained in:
Kevin Ross 2015-12-23 17:59:39 -06:00
parent 7d1f0ffe36
commit 46537635b0
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ module.exports = function (grunt) {
compress: { compress: {
warnings: true warnings: true
}, },
mangle: true, mangle: false,
preserveComments: /^!|@preserve|@license|@cc_on/i preserveComments: /^!|@preserve|@license|@cc_on/i
}, },
core: { core: {

View File

@ -47,7 +47,7 @@ SimpleJekyllSearch.init({
resultsContainer: document.getElementById('search-results'), resultsContainer: document.getElementById('search-results'),
searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>', searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>',
noResultsText: '<div class="dropdown-item no-results">Sorry, there are no results for that search.</div>', noResultsText: '<div class="dropdown-item no-results">Sorry, there are no results for that search.</div>',
json: '/search.json' json: '{{ site.baseurl }}/search.json'
}) })
</script> </script>
{% endif %} {% endif %}