Skip to content

Commit

Permalink
Merge pull request #188 from mortendk/favicon-generate
Browse files Browse the repository at this point in the history
adding favicon generated
  • Loading branch information
mortendk committed Oct 11, 2022
2 parents 7b3b3d1 + 8a54939 commit a92ebc5
Show file tree
Hide file tree
Showing 22 changed files with 188 additions and 86 deletions.
2 changes: 2 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const pluginRss = require("@11ty/eleventy-plugin-rss");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const Image = require("@11ty/eleventy-img");
const faviconsPlugin = require("eleventy-plugin-gen-favicons");

async function picture(image) {
// netlifycms have a tendency to create an empty image in the markdown image: "" so test for this and kill it
Expand Down Expand Up @@ -76,6 +77,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(eleventyNavigationPlugin);

eleventyConfig.addPlugin(faviconsPlugin);
// Shortcodes
eleventyConfig.addNunjucksAsyncShortcode("picture", picture);
eleventyConfig.addShortcode("imageurl", require("./src/system/11ty/shortcode/imageurl"));
Expand Down
Loading

0 comments on commit a92ebc5

Please sign in to comment.