Skip to content

Commit

Permalink
chore: remove unused email
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Sep 15, 2024
1 parent 9a4ad2f commit bb671dc
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 126 deletions.
9 changes: 7 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
const feedPlugin = require("@11ty/eleventy-plugin-rss");

const BROWSER_BUG_TRACKERS = {
chrome: "issues.chromium.org",
Expand Down Expand Up @@ -122,7 +123,7 @@ function augmentFeatureData(id, feature, bcd) {
// Find the BCD entry for this key.
const keyParts = key.split(".");
bcdTags.push(keyParts[0] === "javascript" ? "js" : keyParts[0]);

let data = bcd;
for (const part of keyParts) {
if (!data || !data[part]) {
Expand Down Expand Up @@ -204,7 +205,6 @@ async function getDeps() {
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPassthroughCopy("site/assets");

eleventyConfig.addShortcode(
"browserVersionRelease",
function (browser, version) {
Expand Down Expand Up @@ -354,6 +354,7 @@ module.exports = function (eleventyConfig) {
month: "long",
year: "numeric",
}),
absoluteDate: new Date(month[0]),
all: [...month[1].all],
features: month[1],
};
Expand Down Expand Up @@ -476,6 +477,10 @@ module.exports = function (eleventyConfig) {
return missingOne;
});

// RSS Feed Plugin
eleventyConfig.addPlugin(feedPlugin);
eleventyConfig.addLiquidFilter("dateToRfc3339", feedPlugin.dateToRfc3339);

return {
dir: {
input: "site",
Expand Down
Loading

0 comments on commit bb671dc

Please sign in to comment.