Add an RSS feed and site description
This commit is contained in:
parent
a2cb0960ab
commit
ccecc411b8
6 changed files with 59 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
|
||||
|
||||
import metadata from "./_data/metadata.js";
|
||||
import pluginFilters from "./_config/filters.js";
|
||||
|
||||
export default async function(eleventyConfig) {
|
||||
|
@ -5,6 +8,23 @@ export default async function(eleventyConfig) {
|
|||
|
||||
eleventyConfig.addPlugin(pluginFilters);
|
||||
|
||||
eleventyConfig.addPlugin(feedPlugin, {
|
||||
type: "atom",
|
||||
outputPath: "/feed.xml",
|
||||
collection: {
|
||||
name: "posts",
|
||||
limit: 10
|
||||
},
|
||||
metadata: {
|
||||
title: metadata.title,
|
||||
subtitle: metadata.description,
|
||||
base: metadata.url,
|
||||
author: {
|
||||
name: metadata.author.name
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
eleventyConfig.addCollection("series", collectionsApi => {
|
||||
const seriesNames = collectionsApi.
|
||||
getFilteredByTag("posts").
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue