From 8239b2b02f63b3ef1a60558ecff89f3f995b9f7c Mon Sep 17 00:00:00 2001 From: user Date: Mon, 28 Nov 2022 02:35:02 +0000 Subject: [PATCH] make 'static' dir, add not_found.html --- .eleventy.js | 9 +++++---- .eleventy.js.swp | Bin 12288 -> 0 bytes .eleventyignore | 1 + favicon.ico => static/favicon.ico | Bin static/not_found.html | 9 +++++++++ robots.txt => static/robots.txt | 0 6 files changed, 15 insertions(+), 4 deletions(-) delete mode 100644 .eleventy.js.swp rename favicon.ico => static/favicon.ico (100%) create mode 100644 static/not_found.html rename robots.txt => static/robots.txt (100%) diff --git a/.eleventy.js b/.eleventy.js index 4497189..d8b3cdd 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -13,7 +13,7 @@ module.exports = function(config) { let sortedPlaces = (api) => { return api.getAll().filter((a) => { - return a.data.tags.indexOf("places") != -1; + return a.data.tags && a.data.tags.indexOf("places") != -1; }).sort((a, b) => { return a.data.name.localeCompare(b.data.name); }); @@ -34,8 +34,9 @@ module.exports = function(config) { config.addCollection("place_images", (collection) => placeImages);; config.addPassthroughCopy("places/*/*.jpg"); - config.addPassthroughCopy("robots.txt"); - config.addPassthroughCopy("favicon.ico"); + config.addPassthroughCopy("static/robots.txt"); + config.addPassthroughCopy("static/not_found.html"); + config.addPassthroughCopy("static/favicon.ico"); config.addFilter('where', (array, key, value) => { return (array || []).filter(item => { @@ -65,4 +66,4 @@ module.exports = function(config) { output: "./_site" } }; -}; \ No newline at end of file +}; diff --git a/.eleventy.js.swp b/.eleventy.js.swp deleted file mode 100644 index 28876eae34d3edfb013fafca7d1e657843338aaf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2O=}ZD7{{kxJZQD}0z$Ej+e0>`-L3T^Efr!ZsHj!6dQd6T-6zSklihV@HZ@4q zi+J)Q_yGj(9tA&vo-O)Sd}cS%Ca6hIqC5lt%*)RInb}{SIfTsS{JpC;_{Cs>VVPj; z>%@y_@6{ChvdUO)K)c~##b(21l+T~JfMG-0uni57%w-yk-H}mq4ivN@v7IpJwSp}( zT2Pur1c<>Y5g-CYfCvx)B0vQGK>{LX?DY}GP9Me1+zY}DBQ1D5 z4EgHgT(*V6tGnE${2FX`l&TmWFqK(eQN^GMT|a2rmZ}WA=%8!BG~AOZ5y5^}F))HpH2Q7WAMR?Vtv;9Q4|l~- z7rC_KZ^$H4Ip#aBrz&>W<$EV)w~9?ydIyMa zB9?6>4IZKg-poumQ>^4Ynq|d2ZW5VgVAnF2zoyLc9|>r{Ue@UjUZB6zNure^<9&Ay vWS#qX#v(8#fTSJVT)SVpyK<$9C!>|dxq<+mWU01>FY|hyl!v3tYB%RQ-|un} diff --git a/.eleventyignore b/.eleventyignore index 5d8df2b..3d74542 100644 --- a/.eleventyignore +++ b/.eleventyignore @@ -1,3 +1,4 @@ LICENSE README.md _deleted_places +static/* diff --git a/favicon.ico b/static/favicon.ico similarity index 100% rename from favicon.ico rename to static/favicon.ico diff --git a/static/not_found.html b/static/not_found.html new file mode 100644 index 0000000..05a530e --- /dev/null +++ b/static/not_found.html @@ -0,0 +1,9 @@ + + + not found + + + +

not found - redirecting to veganprestwich.co.uk.

+ + diff --git a/robots.txt b/static/robots.txt similarity index 100% rename from robots.txt rename to static/robots.txt