From a346517f02e9b7a505042ff1e81526c4489b0c28 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Wed, 30 Nov 2022 21:21:48 +1100 Subject: [PATCH] have 11ty pass through img, js, css also fix some urls and delete the original index.html (now in _content anyway) --- .eleventy.js | 3 ++ _content/_includes/layout.njk | 2 +- _content/index.html | 6 +-- _content/notes.html | 4 +- styles.css => css/styles.css | 0 index.html | 75 ----------------------------------- 6 files changed, 9 insertions(+), 81 deletions(-) rename styles.css => css/styles.css (100%) delete mode 100644 index.html diff --git a/.eleventy.js b/.eleventy.js index 9e74803..c344ab7 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -28,6 +28,9 @@ module.exports = function(eleventyConfig) { return collectionApi.getFilteredByGlob("_content/notes/*.md").reverse(); }); + eleventyConfig.addPassthroughCopy("img"); + eleventyConfig.addPassthroughCopy("js"); + // Return your Object options: return { dir: { diff --git a/_content/_includes/layout.njk b/_content/_includes/layout.njk index 29f97e6..721d2be 100644 --- a/_content/_includes/layout.njk +++ b/_content/_includes/layout.njk @@ -17,7 +17,7 @@ title: Mon Repos (Death's Domain) - + {{ title }} diff --git a/_content/index.html b/_content/index.html index 54c75ad..8304f60 100644 --- a/_content/index.html +++ b/_content/index.html @@ -13,7 +13,7 @@ - + Mon Repos (Death's Domain) @@ -47,8 +47,8 @@
  • Gordon Pedersen
  • - - + + {{ title }} @@ -38,5 +38,5 @@ title: Mon Repos (Death's Domain) - + \ No newline at end of file diff --git a/styles.css b/css/styles.css similarity index 100% rename from styles.css rename to css/styles.css diff --git a/index.html b/index.html deleted file mode 100644 index 54c75ad..0000000 --- a/index.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - Mon Repos (Death's Domain) - - - - -
    - A grim reaper in a decorated cubicle, writing and daydreaming, surrounded by many other grim reapers in bland, grey, cubicles - My profile photo — a pixelated version of me -

    - I'm Gordon Pedersen. -

    -

    - ...and I am a human on the Internet. -

    - -
    - - - - - -