Move Nunjucks templates and Markdown files to the `src/` folder

This commit is contained in:
Sofía Aritz 2023-03-29 19:36:44 +02:00
parent c3c82b8e5a
commit 4a1c682d20
16 changed files with 5 additions and 3 deletions

View File

@ -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"
}
}
}

View File

@ -10,7 +10,7 @@
<link rel="stylesheet" href="/css/comments.css" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;1,300&family=Rubik:ital,wght@0,400;0,500;1,400;1,500&display=swap" type="text/css">
{% if load_comments_script %}
<script src="/assets/scripts/dompurify.js"></script>
<script src="/scripts/dompurify.js"></script>
{% endif %}
</head>
<body>