-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheleventy.config.js
More file actions
27 lines (25 loc) · 1.15 KB
/
eleventy.config.js
File metadata and controls
27 lines (25 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pluginRss from "@11ty/eleventy-plugin-rss";
export default async function(eleventyConfig) {
eleventyConfig.addFilter("custom_date", function(value) { return value.toLocaleDateString("de-DE", {
year: "numeric",
month: "2-digit",
day: "2-digit",
}) });
eleventyConfig.addFilter("custom_date_iso", function(value) { return value.toISOString().split('T')[0] });
eleventyConfig.addPassthroughCopy({"src/_headers": "_headers"});
eleventyConfig.addPassthroughCopy({"src/_redirects": "_redirects"});
eleventyConfig.addPassthroughCopy({"src/CNAME": "CNAME"});
eleventyConfig.addPassthroughCopy("src/robots.txt");
eleventyConfig.addPassthroughCopy("src/simple.xslt");
eleventyConfig.addPassthroughCopy("src/{,!(_site)/**/}*.webp");
eleventyConfig.addPassthroughCopy("src/{,!(_site)/**/}*.avif");
// eleventyConfig.addPassthroughCopy("src/_posts/2024-06-14-discord-archiving/report.htm");
eleventyConfig.addPassthroughCopy("src/_posts/2024-06-14-discord-archiving/archive.sh");
eleventyConfig.addPlugin(pluginRss);
return {
dir: {
input: "src",
output: "dist"
}
}
};