-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eleventy.js
29 lines (26 loc) · 1.22 KB
/
.eleventy.js
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
28
29
const pluginRss = require("@11ty/eleventy-plugin-rss");
const shikiTwoslash = require("eleventy-plugin-shiki-twoslash");
const sitemap = require("@quasibit/eleventy-plugin-sitemap");
const greenLinks = require("eleventy-plugin-green-links");
module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("website/styles.css");
eleventyConfig.addPassthroughCopy("website/webmentions.js");
eleventyConfig.addPassthroughCopy("website/feed.xsl");
eleventyConfig.addPassthroughCopy("website/ab-quiz.js");
eleventyConfig.addPassthroughCopy("website/.well-known/**/*");
eleventyConfig.addPassthroughCopy("website/google7c5903cf6acc20cf.html");
eleventyConfig.addPassthroughCopy("website/robots.txt");
eleventyConfig.addPassthroughCopy("website/favicon.svg");
eleventyConfig.addPassthroughCopy("website/indiebookmarks.db");
eleventyConfig.addCollection("post", function (collection) {
return collection.getFilteredByGlob("website/post/**/*.md");
});
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(shikiTwoslash, { theme: "nord" });
eleventyConfig.addPlugin(sitemap, {
sitemap: {
hostname: "https://jak2k.schwanenberg.name",
},
});
eleventyConfig.addPlugin(greenLinks);
};