aboutsummaryrefslogtreecommitdiff
path: root/.eleventy.js
diff options
context:
space:
mode:
authorIndrajith K L2022-09-03 03:13:50 +0530
committerIndrajith K L2022-09-03 03:13:50 +0530
commit8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22 (patch)
tree6adfc918dcfe17d997d0faabd3da459906fc1452 /.eleventy.js
parent7121a634d79b79e158ca91ce68051b2805733fa9 (diff)
downloadindrajith-dev-8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22.tar.gz
indrajith-dev-8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22.tar.bz2
indrajith-dev-8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22.zip
Adds RSS Feed
Diffstat (limited to '.eleventy.js')
-rw-r--r--.eleventy.js12
1 files changed, 9 insertions, 3 deletions
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");