-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create blog feed with virtual template
- Loading branch information
Showing
2 changed files
with
22 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Installed Plugins | ||
import pluginRss from "@11ty/eleventy-plugin-rss"; | ||
import { feedPlugin } from "@11ty/eleventy-plugin-rss"; | ||
import pluginEleventyNavigation from "@11ty/eleventy-navigation"; | ||
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; | ||
import pluginMetagen from "eleventy-plugin-metagen"; | ||
|
@@ -12,9 +12,29 @@ import collectionsConfig from "./src/_config/collections.js"; | |
import filtersConfig from "./src/_config/filters.js"; | ||
import shortCodesConfig from "./src/_config/shortcodes.js"; | ||
|
||
// Sitemeta | ||
import { } from "./src/_data/sitemeta.js"; | ||
|
||
export default function(eleventyConfig) { | ||
// Installed Plugins | ||
eleventyConfig.addPlugin(pluginRss); | ||
eleventyConfig.addPlugin(feedPlugin, { | ||
type: "atom", | ||
outputPath: "/blog/feed.xml", | ||
collection: { | ||
name: "posts", | ||
limit: 10, | ||
}, | ||
metadata: { | ||
language: "en", | ||
title: "Helen Chong's Developer Blog", | ||
subtitle: "Helen Chong talks about tech, coding and development.", | ||
base: "https://helenchong.dev/blog/", | ||
author: { | ||
name: "Helen Chong", | ||
email: "[email protected]", | ||
} | ||
} | ||
}); | ||
eleventyConfig.addPlugin(pluginEleventyNavigation); | ||
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } }); | ||
eleventyConfig.addPlugin(pluginMetagen); | ||
|
This file was deleted.
Oops, something went wrong.