site/eleventy.config.js
Ruben 2bc1a4c684
All checks were successful
/ build (push) Successful in 29s
an attempt to compact css and use clean-css and failing
2025-06-01 13:41:16 -05:00

34 lines
No EOL
1 KiB
JavaScript

import { feedPlugin } from "@11ty/eleventy-plugin-rss";
import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
import CleanCSS from "clean-css";
export default function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("assets/");
eleventyConfig.addPassthroughCopy("styles/");
eleventyConfig.addPassthroughCopy("scripts/");
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addFilter("cssmin", function (code) {
return new CleanCSS({}).minify(code).styles;
});
eleventyConfig.addPlugin(feedPlugin, {
type: "atom", // or "rss", "json"
outputPath: "/feed.xml",
collection: {
name: "posts", // iterate over `collections.posts`
limit: 0, // 0 means no limit
},
metadata: {
language: "en",
title: "a gooey synth's notebooks",
subtitle: "a blog-ish writeup-ish rant-ish page to store random writings and thoughts in.",
base: "https://synth.download/",
author: {
name: "Sneexy",
email: "sneexy@synth.download", // Optional
}
}
});
};