diff --git a/.eleventy.js b/.eleventy.js index 7d49567..e53fe32 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -9,11 +9,13 @@ const placeImages = fg.sync([ const Image = require("@11ty/eleventy-img"); module.exports = function (config) { + config.addGlobalData("siteUrl", "https://www.veganprestwich.co.uk"); + config.addShortcode("image", async (src, alt, sizes) => { let metadata = await Image(src, { widths: [150, 300], formats: ["webp", "jpeg"], - outputDir: "./_site/img/" + outputDir: "./_site/img/", }); let imageAttributes = { @@ -49,15 +51,15 @@ module.exports = function (config) { config.addCollection("sorted_places", (api) => sortedPlaces(api)); config.addCollection("shops", (api) => - sortedPlaces(api).filter((a) => a.data.permalink && a.data.shop) + sortedPlaces(api).filter((a) => a.data.permalink && a.data.shop), ); config.addCollection("restaurants", (api) => - sortedPlaces(api).filter((a) => a.data.permalink && a.data.restaurant) + sortedPlaces(api).filter((a) => a.data.permalink && a.data.restaurant), ); config.addCollection("deliveries", (api) => - sortedPlaces(api).filter((a) => a.data.permalink && a.data.delivery) + sortedPlaces(api).filter((a) => a.data.permalink && a.data.delivery), ); config.addWatchTarget("./style/style.scss"); diff --git a/_includes/head.html b/_includes/head.html index ae58a99..dc5e145 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,26 +1,25 @@
- - - - - - {% capture styles %} - {% include "../_site/style/style.css" %} - {% endcapture %} + + + + + + {% capture styles %} {% include "../_site/style/style.css" %} {% endcapture %}