diff --git a/.eleventy.js b/.eleventy.js index e4efcb0..bda8544 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -180,6 +180,6 @@ module.exports = function (config) { }, // Set template formats so that other files won't be included in dist - templateFormats: ["njk", "md", "html"] + templateFormats: ["njk", "md", "liquid", "html"] }; }; \ No newline at end of file diff --git a/README.md b/README.md index ebd4b97..0cf10de 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ This a template providing a sane base config for eleventy, mainly for the purpos | `npm run watch` | Run dev server in watch mode | | `npm run css_watch` | Watch for CSS changes & rebuild | | `npm run build` | First build the CSS, then the site | - +| `npm run prod_build` | First build the CSS, then the site in production mode | ## Other Settings ``` .\.eleventy.js diff --git a/docs/chronik/index.html b/docs/chronik/index.html index 0fa59db..216117d 100644 --- a/docs/chronik/index.html +++ b/docs/chronik/index.html @@ -131,14 +131,17 @@ diff --git a/docs/datenschutz/index.html b/docs/datenschutz/index.html index b3d1890..a42a1d3 100644 --- a/docs/datenschutz/index.html +++ b/docs/datenschutz/index.html @@ -131,14 +131,17 @@ diff --git a/docs/index.html b/docs/index.html index e26884d..8e1d13d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -131,14 +131,17 @@ diff --git a/docs/kontakt/index.html b/docs/kontakt/index.html index ac0a2b4..bfa1fde 100644 --- a/docs/kontakt/index.html +++ b/docs/kontakt/index.html @@ -131,14 +131,17 @@ diff --git a/docs/static/js/search.js b/docs/static/js/search.js new file mode 100644 index 0000000..00ca91b --- /dev/null +++ b/docs/static/js/search.js @@ -0,0 +1,10 @@ +// attach a click handler to the search link +var btn = document.querySelector('#global-search-form'); +btn.addEventListener('submit', function(event) { + + // don't navigate to that page. Stay put. + event.preventDefault(); + + // make search magic happen instead... + +}, false); \ No newline at end of file diff --git a/docs/verzeichnisse/forschungsbibliographie/index.html b/docs/verzeichnisse/forschungsbibliographie/index.html index 1242359..61c00c2 100644 --- a/docs/verzeichnisse/forschungsbibliographie/index.html +++ b/docs/verzeichnisse/forschungsbibliographie/index.html @@ -131,14 +131,17 @@ diff --git a/docs/verzeichnisse/handschriften/index.html b/docs/verzeichnisse/handschriften/index.html index 406aada..5937031 100644 --- a/docs/verzeichnisse/handschriften/index.html +++ b/docs/verzeichnisse/handschriften/index.html @@ -131,14 +131,17 @@ diff --git a/docs/verzeichnisse/posthume_ausgaben/index.html b/docs/verzeichnisse/posthume_ausgaben/index.html index 6448c40..a321c98 100644 --- a/docs/verzeichnisse/posthume_ausgaben/index.html +++ b/docs/verzeichnisse/posthume_ausgaben/index.html @@ -131,14 +131,17 @@ diff --git a/docs/verzeichnisse/selbststaendige_drucke/index.html b/docs/verzeichnisse/selbststaendige_drucke/index.html index 9d7a1b0..ddbe654 100644 --- a/docs/verzeichnisse/selbststaendige_drucke/index.html +++ b/docs/verzeichnisse/selbststaendige_drucke/index.html @@ -131,14 +131,17 @@ diff --git a/docs/verzeichnisse/theaterauffuehrungen/index.html b/docs/verzeichnisse/theaterauffuehrungen/index.html index dea36e5..5abd280 100644 --- a/docs/verzeichnisse/theaterauffuehrungen/index.html +++ b/docs/verzeichnisse/theaterauffuehrungen/index.html @@ -131,14 +131,17 @@ diff --git a/docs/verzeichnisse/uebersetzungen/index.html b/docs/verzeichnisse/uebersetzungen/index.html index 355f6a8..3bd32ee 100644 --- a/docs/verzeichnisse/uebersetzungen/index.html +++ b/docs/verzeichnisse/uebersetzungen/index.html @@ -131,14 +131,17 @@ diff --git a/docs/verzeichnisse/unselbststaendige_drucke/index.html b/docs/verzeichnisse/unselbststaendige_drucke/index.html index fed1922..c2d180c 100644 --- a/docs/verzeichnisse/unselbststaendige_drucke/index.html +++ b/docs/verzeichnisse/unselbststaendige_drucke/index.html @@ -131,14 +131,17 @@ diff --git a/src/dynamic/lunr.liquid_unused b/src/dynamic/lunr.liquid_unused new file mode 100644 index 0000000..f653542 --- /dev/null +++ b/src/dynamic/lunr.liquid_unused @@ -0,0 +1,14 @@ +--- +permalink: /index.json +--- + +[ +{% for character in collections.characters %} + { + "title":"{{ character.data.title }}", + "url":"{{ character.url }}", + "content":"{% excerpt character %}" + } + {% if forloop.last == false %},{% endif %} +{% endfor %} +] \ No newline at end of file diff --git a/src/includes/search.njk b/src/includes/search.njk index e0d9eb2..8963cf0 100644 --- a/src/includes/search.njk +++ b/src/includes/search.njk @@ -1,8 +1,11 @@ \ No newline at end of file diff --git a/src/static/js/search.js b/src/static/js/search.js new file mode 100644 index 0000000..00ca91b --- /dev/null +++ b/src/static/js/search.js @@ -0,0 +1,10 @@ +// attach a click handler to the search link +var btn = document.querySelector('#global-search-form'); +btn.addEventListener('submit', function(event) { + + // don't navigate to that page. Stay put. + event.preventDefault(); + + // make search magic happen instead... + +}, false); \ No newline at end of file