From af337661767facd1ad307ffcc154c971d6eb4aaf Mon Sep 17 00:00:00 2001 From: J S Date: Sun, 15 Oct 2023 18:17:48 -0400 Subject: [PATCH] feat[partials/ js/] Stripped search functionality I don't care about search on second thought. --- layouts/_default/baseof.html | 1 + layouts/partials/footer.html | 3 +- layouts/partials/head.html | 4 - layouts/partials/search.html | 7 +- static/js/dark.js | 23 +- static/scripts/askolonion/askolonion.js | 244 -- static/scripts/askolonion/fuse.basic.min.js | 9 - static/scripts/askolonion/fuse.js | 2240 ------------------ static/scripts/fixedsearch/askolonion.js | 244 -- static/scripts/fixedsearch/fuse.basic.min.js | 9 - 10 files changed, 12 insertions(+), 2772 deletions(-) delete mode 100644 static/scripts/askolonion/askolonion.js delete mode 100644 static/scripts/askolonion/fuse.basic.min.js delete mode 100644 static/scripts/askolonion/fuse.js delete mode 100644 static/scripts/fixedsearch/askolonion.js delete mode 100644 static/scripts/fixedsearch/fuse.basic.min.js diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a3d7ac7..9c49f6b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,6 +16,7 @@ {{ end }} {{ block "footer" . }} + {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1553b75..a35cc91 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,4 +4,5 @@

Go here for an RSS feed.

- \ No newline at end of file + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 165163e..91dc576 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,8 +11,4 @@ - - - {{ partialCached "search" . }} - diff --git a/layouts/partials/search.html b/layouts/partials/search.html index f759777..2d6dc17 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -1,8 +1,8 @@
- - + +
@@ -12,8 +12,7 @@ `); diff --git a/static/scripts/askolonion/askolonion.js b/static/scripts/askolonion/askolonion.js deleted file mode 100644 index f345cd1..0000000 --- a/static/scripts/askolonion/askolonion.js +++ /dev/null @@ -1,244 +0,0 @@ -// static/scripts/askolonion/askolonion.js -/*-------------------------------------------------------------- -askolonion — Super fast, client side search for Hugo.io with Fusejs.io -based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993 ---------------------------------------------------------------*/ - -if (typeof variable !== 'undefined') { - console.log('askolonion.js already loaded'); -} else { -askolonion = function(){ - var search__form = document.getElementById('search__form'); // search form - var search__input = document.getElementById('search__input'); // input box for search - var search__button = document.getElementById('search__button'); // form submit button - var search__results = document.getElementById('search__results'); // targets the