diff --git a/_includes/components/webmentions.njk b/_includes/components/webmentions.njk index 013423f..f203321 100644 --- a/_includes/components/webmentions.njk +++ b/_includes/components/webmentions.njk @@ -35,7 +35,7 @@ target="_blank" rel="noopener"> {{ like.author.name }} {{ repost.author.name }} {{ reply.author.name }} {% endif %} + {# Favicon #} + + + + diff --git a/eleventy.config.js b/eleventy.config.js index 18bdfd9..a6c5238 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -122,6 +122,7 @@ export default function (eleventyConfig) { eleventyConfig.addPassthroughCopy("css"); eleventyConfig.addPassthroughCopy("images"); eleventyConfig.addPassthroughCopy("js"); + eleventyConfig.addPassthroughCopy("favicon.ico"); // Watch for content changes eleventyConfig.addWatchTarget("./content/"); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..9274a8c Binary files /dev/null and b/favicon.ico differ diff --git a/images/favicon.svg b/images/favicon.svg new file mode 100644 index 0000000..c15703d --- /dev/null +++ b/images/favicon.svg @@ -0,0 +1,4 @@ + + + i + diff --git a/interactions.njk b/interactions.njk index bcc2e1d..4abfc19 100644 --- a/interactions.njk +++ b/interactions.njk @@ -198,11 +198,11 @@ permalink: /interactions/ {# Author avatar #} diff --git a/js/webmentions.js b/js/webmentions.js index b9ab360..5381dfe 100644 --- a/js/webmentions.js +++ b/js/webmentions.js @@ -100,7 +100,7 @@ link.dataset.new = 'true'; const img = document.createElement('img'); - img.src = author.photo || '/images/default-avatar.png'; + img.src = author.photo || '/images/default-avatar.svg'; img.alt = author.name || 'Anonymous'; img.className = 'w-8 h-8 rounded-full ring-2 ring-primary-500'; img.loading = 'lazy'; @@ -148,7 +148,7 @@ avatarLink.rel = 'noopener'; const avatarImg = document.createElement('img'); - avatarImg.src = author.photo || '/images/default-avatar.png'; + avatarImg.src = author.photo || '/images/default-avatar.svg'; avatarImg.alt = author.name || 'Anonymous'; avatarImg.className = 'w-10 h-10 rounded-full'; avatarImg.loading = 'lazy';