diff --git a/.eleventy.js b/.eleventy.js deleted file mode 100644 index e195d6c..0000000 --- a/.eleventy.js +++ /dev/null @@ -1,43 +0,0 @@ -const { DateTime } = require("luxon") -const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight") - -module.exports = function (eleventyConfig) { - eleventyConfig.addPlugin(syntaxHighlight) - - //eleventyConfig.addPassthroughCopy("css") - //eleventyConfig.addPassthroughCopy("src/_assets/*.png") - //eleventyConfig.addPassthroughCopy("src/_assets/*.jpg") - eleventyConfig.addPassthroughCopy("src/pwa.webmanifest") - eleventyConfig.addPassthroughCopy("src/css/*.css") - eleventyConfig.addPassthroughCopy("src/libs/**/*.js") - eleventyConfig.addPassthroughCopy({ "src/_assets/": "assets" }) - - eleventyConfig.addFilter("formatDate", (dateObj) => { - return DateTime.fromJSDate(dateObj, { - zone: "Europe/Berlin", - }) - .setLocale("de") - .toLocaleString(DateTime.DATE_FULL) - }) - - // Filter for showing excerpts of posts on the "/posts/" site, limited to 180 characters (about 4 lines on mobile) - eleventyConfig.addFilter("createExcerpt", (post) => { - // This removes "<" and ">" from the output - const content = post.replace(/(<([^>]+)>)/gi, "") - return content.substr(0, content.lastIndexOf(" ", 450)) + "..." - }) - - eleventyConfig.addFilter("stringify", (object) => { - return JSON.stringify(object, null, 2) - }) - - return { - passthroughFileCopy: true, - dir: { - input: "src", - includes: "_includes", - data: "_data", - output: "build", - }, - } -} diff --git a/.eleventyignore b/.eleventyignore deleted file mode 100644 index 995d520..0000000 --- a/.eleventyignore +++ /dev/null @@ -1,2 +0,0 @@ -README.md -node_modules diff --git a/.gitignore b/.gitignore index dd87e2d..220273f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules build +_site \ No newline at end of file diff --git a/src/_includes/partials/footer.njk b/_includes/_footer.njk similarity index 100% rename from src/_includes/partials/footer.njk rename to _includes/_footer.njk diff --git a/src/_includes/partials/header.njk b/_includes/_header.njk similarity index 97% rename from src/_includes/partials/header.njk rename to _includes/_header.njk index 87215e1..15984bb 100644 --- a/src/_includes/partials/header.njk +++ b/_includes/_header.njk @@ -9,9 +9,9 @@