feat: Added Atom feed
Some checks failed
Deploy Blog to Folder / deploy (push) Failing after 3s

This commit is contained in:
2025-07-31 22:47:00 -04:00
parent 84bfe623e3
commit 0280b84c44
6 changed files with 285 additions and 4 deletions

View File

@ -1,9 +1,29 @@
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
/** @param {import("@11ty/eleventy").UserConfig} eleventyConfig */
export default async function(eleventyConfig) {
eleventyConfig.addPassthroughCopy(
{'./public/': '/'}
);
eleventyConfig.addPlugin(feedPlugin, {
type: "atom",
outputPath: "/atom.xml",
collection: {
name: "posts", // iterate over `collections.posts`
limit: 25, // 0 means no limit
},
metadata: {
language: "en",
title: "Cy-by-Side",
subtitle: "Cy by Side with Cyper: Tangents, Tech, and Thoughtful Takes.",
base: "https://cy.cyper.cc/",
author: {
name: "Cyper"
}
}
});
eleventyConfig.addShortcode("triangleSvg", function(strokeWidth = 10) {
const w = parseFloat(strokeWidth);
if (isNaN(w) || w <= 0) {