|
1 | 1 | const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
| 2 | +const feedPlugin = require("@11ty/eleventy-plugin-rss"); |
2 | 3 |
|
3 | 4 | const BROWSER_BUG_TRACKERS = {
|
4 | 5 | chrome: "issues.chromium.org",
|
@@ -122,7 +123,7 @@ function augmentFeatureData(id, feature, bcd) {
|
122 | 123 | // Find the BCD entry for this key.
|
123 | 124 | const keyParts = key.split(".");
|
124 | 125 | bcdTags.push(keyParts[0] === "javascript" ? "js" : keyParts[0]);
|
125 |
| - |
| 126 | + |
126 | 127 | let data = bcd;
|
127 | 128 | for (const part of keyParts) {
|
128 | 129 | if (!data || !data[part]) {
|
@@ -204,7 +205,6 @@ async function getDeps() {
|
204 | 205 | module.exports = function (eleventyConfig) {
|
205 | 206 | eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
206 | 207 | eleventyConfig.addPassthroughCopy("site/assets");
|
207 |
| - |
208 | 208 | eleventyConfig.addShortcode(
|
209 | 209 | "browserVersionRelease",
|
210 | 210 | function (browser, version) {
|
@@ -354,6 +354,7 @@ module.exports = function (eleventyConfig) {
|
354 | 354 | month: "long",
|
355 | 355 | year: "numeric",
|
356 | 356 | }),
|
| 357 | + absoluteDate: new Date(month[0]), |
357 | 358 | all: [...month[1].all],
|
358 | 359 | features: month[1],
|
359 | 360 | };
|
@@ -476,6 +477,10 @@ module.exports = function (eleventyConfig) {
|
476 | 477 | return missingOne;
|
477 | 478 | });
|
478 | 479 |
|
| 480 | + // RSS Feed Plugin |
| 481 | + eleventyConfig.addPlugin(feedPlugin); |
| 482 | + eleventyConfig.addLiquidFilter("dateToRfc3339", feedPlugin.dateToRfc3339); |
| 483 | + |
479 | 484 | return {
|
480 | 485 | dir: {
|
481 | 486 | input: "site",
|
|
0 commit comments