Closed website-user closed 2 months ago
The path provided to the shortcode should be from the root of the project; for eleventy-base-blog
, that means your path would begin with the public
folder: either public/img/favicon.svg
or ./public/img/favicon.svg
should work!
Ah amazing! That worked. Thank you very much.
Hey there, Thanks for making this plugin!
I'm having an issue.
From what I can tell, the issue is that the plugin cannot find the svg file.
I can see that the image is in my
_site/img
directory at build.I'm using the eleventy-base-blog template, which uses .njk template files. I've followed the installation instructions to the T, twice, from the npmjs.com page, and gotten the same issue.
This is the line I've put at the end of the
<head>
section in mybase.njk
template file:{% favicons "/img/favicon.svg" %}
I've tried formatting it as:
{% favicons "favicon.svg" %}
{% favicons "/favicon.svg" %}
{% favicons "./favicon.svg" %}
{% favicons "/img/favicon.svg" %}
{% favicons "./img/favicon.svg" %}
I've tried using
'
quotes and"
quotes.I've tried renaming it
favicon_0001.svg
I've tried loading .png version of the file.
So far, nothing works.
This is the error message that comes up when I try to build:
Any ideas?
Thank you, Liam