From 4a1c682d20945265c58c1db059e1dbdf2f67a148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Aritz?= Date: Wed, 29 Mar 2023 19:36:44 +0200 Subject: [PATCH] Move Nunjucks templates and Markdown files to the `src/` folder --- .eleventy.js | 6 ++++-- {_includes => src/_includes}/post.njk | 0 {_includes => src/_includes}/simple_page.njk | 2 +- contact.md => src/contact.md | 0 {en => src/en}/contact.md | 0 {en => src/en}/index.md | 0 index.md => src/index.md | 0 links.md => src/links.md | 0 projects.md => src/projects.md | 0 recommendations.md => src/recommendations.md | 0 weblog.md => src/weblog.md | 0 {weblog => src/weblog}/firstpost.md | 0 {weblog => src/weblog}/note-taking-experiment.md | 0 {css => static/css}/app.css | 0 {css => static/css}/comments.css | 0 {css => static/css}/navbar.css | 0 16 files changed, 5 insertions(+), 3 deletions(-) rename {_includes => src/_includes}/post.njk (100%) rename {_includes => src/_includes}/simple_page.njk (98%) rename contact.md => src/contact.md (100%) rename {en => src/en}/contact.md (100%) rename {en => src/en}/index.md (100%) rename index.md => src/index.md (100%) rename links.md => src/links.md (100%) rename projects.md => src/projects.md (100%) rename recommendations.md => src/recommendations.md (100%) rename weblog.md => src/weblog.md (100%) rename {weblog => src/weblog}/firstpost.md (100%) rename {weblog => src/weblog}/note-taking-experiment.md (100%) rename {css => static/css}/app.css (100%) rename {css => static/css}/comments.css (100%) rename {css => static/css}/navbar.css (100%) diff --git a/.eleventy.js b/.eleventy.js index b54196f..ac0252c 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,7 +2,6 @@ const { DateTime } = require("luxon") const timeToRead = require("eleventy-plugin-time-to-read") module.exports = function(eleventyConfig) { - eleventyConfig.addPassthroughCopy("css") eleventyConfig.addPassthroughCopy({ "static": "/" }) eleventyConfig.addPlugin(timeToRead, { @@ -21,6 +20,9 @@ module.exports = function(eleventyConfig) { return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat('yyyy-LL-dd'); }) return { - passthroughFileCopy: true + passthroughFileCopy: true, + dir: { + input: "src" + } } } diff --git a/_includes/post.njk b/src/_includes/post.njk similarity index 100% rename from _includes/post.njk rename to src/_includes/post.njk diff --git a/_includes/simple_page.njk b/src/_includes/simple_page.njk similarity index 98% rename from _includes/simple_page.njk rename to src/_includes/simple_page.njk index b11736c..320637d 100644 --- a/_includes/simple_page.njk +++ b/src/_includes/simple_page.njk @@ -10,7 +10,7 @@ {% if load_comments_script %} - + {% endif %} diff --git a/contact.md b/src/contact.md similarity index 100% rename from contact.md rename to src/contact.md diff --git a/en/contact.md b/src/en/contact.md similarity index 100% rename from en/contact.md rename to src/en/contact.md diff --git a/en/index.md b/src/en/index.md similarity index 100% rename from en/index.md rename to src/en/index.md diff --git a/index.md b/src/index.md similarity index 100% rename from index.md rename to src/index.md diff --git a/links.md b/src/links.md similarity index 100% rename from links.md rename to src/links.md diff --git a/projects.md b/src/projects.md similarity index 100% rename from projects.md rename to src/projects.md diff --git a/recommendations.md b/src/recommendations.md similarity index 100% rename from recommendations.md rename to src/recommendations.md diff --git a/weblog.md b/src/weblog.md similarity index 100% rename from weblog.md rename to src/weblog.md diff --git a/weblog/firstpost.md b/src/weblog/firstpost.md similarity index 100% rename from weblog/firstpost.md rename to src/weblog/firstpost.md diff --git a/weblog/note-taking-experiment.md b/src/weblog/note-taking-experiment.md similarity index 100% rename from weblog/note-taking-experiment.md rename to src/weblog/note-taking-experiment.md diff --git a/css/app.css b/static/css/app.css similarity index 100% rename from css/app.css rename to static/css/app.css diff --git a/css/comments.css b/static/css/comments.css similarity index 100% rename from css/comments.css rename to static/css/comments.css diff --git a/css/navbar.css b/static/css/navbar.css similarity index 100% rename from css/navbar.css rename to static/css/navbar.css