Skip to content

Commit

Permalink
fave icon fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mortendk committed Jul 9, 2023
1 parent 927b128 commit 3e9e006
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require("path");
const fs = require("fs");
const util = require('util');
const { EleventyRenderPlugin } = require("@11ty/eleventy");

const env = require("./src/content/_data/env.js");
const package = require("./package.json");
Expand All @@ -16,6 +17,7 @@ const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const faviconsPlugin = require("eleventy-plugin-gen-favicons");


const markdownIt = require('markdown-it');
const markdownItEleventyImg = require("markdown-it-eleventy-img");
const embedYouTube = require("eleventy-plugin-youtube-embed");
Expand All @@ -27,6 +29,8 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(faviconsPlugin, {'generateManifest': false});
eleventyConfig.addPlugin(EleventyRenderPlugin);

// Shortcodes
eleventyConfig.addShortcode("image", require("./src/_system/11ty/shortcode/image.js"));
eleventyConfig.addShortcode("imageurl", require("./src/_system/11ty/shortcode/imageurl.js"));
Expand Down
12 changes: 0 additions & 12 deletions src/_system/head/icon.liquid

This file was deleted.

13 changes: 12 additions & 1 deletion src/theme-grunn/layouts/html.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,20 @@
seo: seo
-%}

{% comment %} icons & manifest {% endcomment %}
<meta name="theme-color" content="{{ site.color }}">

{%- render "_system/head/icon.liquid", icon: site.icon -%}
<link rel="manifest" href="/manifest.webmanifest">

{% renderTemplate "njk", site %}
{% if icon %}
{% set icon = 'src/' + icon %}
{% else %}
{% set icon = "src/_system/icon.png" %}
{% endif %}

{% favicons icon, appleIconBgColor=faviconcolor, appleIconPadding=10, generateManifest=false %}
{% endrenderTemplate %}

{% comment %} OPENGRAPH {% endcomment %}
{% assign ogImage = opengraph.image | default: site.opengraph %}
Expand Down

0 comments on commit 3e9e006

Please sign in to comment.