This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user