new listings daily roundups rss
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { HtmlBasePlugin, IdAttributePlugin } from "@11ty/eleventy";
|
||||
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
|
||||
|
||||
import pluginFilters from "./_config/filters.js";
|
||||
|
||||
@ -31,6 +32,25 @@ export default async function(eleventyConfig) {
|
||||
/* `id` attributes */
|
||||
eleventyConfig.addPlugin(IdAttributePlugin);
|
||||
|
||||
/* RSS */
|
||||
eleventyConfig.addPlugin(feedPlugin, {
|
||||
type: "atom", // or "rss", "json"
|
||||
outputPath: "/feed.xml",
|
||||
collection: {
|
||||
name: "daily", // iterate over `collections.posts`
|
||||
limit: 10, // 0 means no limit
|
||||
},
|
||||
metadata: {
|
||||
language: "en",
|
||||
title: "Fediverse Skillshare Classifieds",
|
||||
subtitle: "Skillshare listings for the Fediverse",
|
||||
base: "https://inherentlee.codeberg.page/",
|
||||
author: {
|
||||
name: "Lee Cattarin"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* Draft handling */
|
||||
eleventyConfig.addPreprocessor("drafts", "*", (data, content) => {
|
||||
if(data.draft) {
|
||||
|
||||
Reference in New Issue
Block a user