From 8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Sep 2022 03:13:50 +0530 Subject: Adds RSS Feed --- .eleventy.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '.eleventy.js') diff --git a/.eleventy.js b/.eleventy.js index e5d8260..ab22c9d 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,12 +2,13 @@ const dayjs = require("dayjs"); const faviconPlugin = require("eleventy-favicon"); -const eleventyPluginFeathericons = require('eleventy-plugin-feathericons'); +const eleventyPluginFeathericons = require("eleventy-plugin-feathericons"); const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); +const pluginRss = require("@11ty/eleventy-plugin-rss"); module.exports = function (config) { config.addPassthroughCopy({ - 'src/_includes/assets/css/styles.css': './styles.css' + "src/_includes/assets/css/styles.css": "./styles.css", }); config.addPassthroughCopy({ "src/css/fonts": "./fonts", @@ -16,11 +17,16 @@ module.exports = function (config) { "src/images": "./images", }); config.addPlugin(faviconPlugin, { - destination: './public' + destination: "./public", }); config.addWatchTarget("./src/css"); config.addPlugin(eleventyPluginFeathericons); config.addPlugin(syntaxHighlight); + config.addPlugin(pluginRss, { + posthtmlRenderOptions: { + closingSingleTag: "default", + }, + }); config.addFilter("dateFilter", function (date) { return dayjs(date).format("DD MMM YYYY"); -- cgit v1.2.3