From 2a024ddcec4e332cdb936a474491062d1288f0da Mon Sep 17 00:00:00 2001 From: phette23 Date: Mon, 27 Jan 2020 22:12:08 -0800 Subject: [PATCH] only load search JS if we're going to use it closes #130 --- _includes/footer.html | 11 +++++++---- search_data.json | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index bb3c13e3..f17a0b82 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -38,13 +38,16 @@ - - + - - + +{% if site.data.conf.search %} + + + +{% endif %} {% if page.layout == 'proposedContent' %} diff --git a/search_data.json b/search_data.json index 59e5334e..61e02111 100644 --- a/search_data.json +++ b/search_data.json @@ -1,6 +1,7 @@ --- layout: null --- +{% if site.data.conf.search %} { {% for post in site.posts %} @@ -56,3 +57,4 @@ layout: null {% endfor %} } +{% endif %}