Skip to content

Commit 9aa0928

Browse files
committed
fix: 🐛 the imports and exports for rssfeed were wrong
1 parent 6743156 commit 9aa0928

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/_config/plugins.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ import {htmlConfig} from './plugins/html-config.js';
1414
// Custom template language
1515
import {cssConfig} from './plugins/css-config.js';
1616
import {jsConfig} from './plugins/js-config.js';
17+
import {rssConfig} from './plugins/rss-config.js';
1718

1819
export default {
1920
EleventyRenderPlugin,
2021
rss,
2122
syntaxHighlight,
2223
webc,
2324
markdownLib,
24-
drafts,
25+
drafts,
2526
htmlConfig,
2627
cssConfig,
27-
jsConfig
28+
jsConfig,
29+
rssConfig
2830
};

src/_config/plugins/rss-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {feedPlugin} from '@11ty/eleventy-plugin-rss';
2-
import {url} from '../../_data/meta';
2+
import {url} from '../../_data/meta.js';
33

4-
export default function (eleventyConfig) {
4+
export const rssConfig = eleventyConfig => {
55
eleventyConfig.addPlugin(feedPlugin, {
66
type: 'atom', // or "rss", "json"
77
outputPath: '/feed.xml',
@@ -21,4 +21,4 @@ export default function (eleventyConfig) {
2121
}
2222
}
2323
});
24-
}
24+
};

0 commit comments

Comments
 (0)