From 9737e1fecfa55cdb4ff475b95d85fc605c3d7fbb Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Fri, 12 Jul 2024 15:01:46 -0400 Subject: [PATCH] Upload files to "/" --- .eleventy.js | 7 +++++++ index.liquid | 10 ++++++++++ package.json | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .eleventy.js create mode 100644 index.liquid create mode 100644 package.json diff --git a/.eleventy.js b/.eleventy.js new file mode 100644 index 0000000..c79ec25 --- /dev/null +++ b/.eleventy.js @@ -0,0 +1,7 @@ +module.exports = function (eleventyConfig) { + eleventyConfig.addCollection("colors", function (collectionApi) { + return collectionApi.getAll().filter(function (item) { + return "colors" in item.data; + }); + }); +}; diff --git a/index.liquid b/index.liquid new file mode 100644 index 0000000..5de9d06 --- /dev/null +++ b/index.liquid @@ -0,0 +1,10 @@ + +Page title +

Hi

+ + diff --git a/package.json b/package.json new file mode 100644 index 0000000..f0b8b2e --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "11tytest", + "version": "1.0.0", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "description": "", + "dependencies": { + "@11ty/eleventy": "^2.0.1" + } +}