You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
I don't want to modify layout.ejs, since that would make it difficult to upgrade the module, but I see no other way of making changes to the <head>-section in the produced HTML.
My foremost need is to add a favicon, so that is my basic request. A default favicon in the images-folder could be used, for example, and then overridden similarly to the way it is done with the logo-image.
However, I can foresee other needs as well (such adding Google Analytics, and various-sized apple-touch-icons), so a more general solution would also be welcome (such as a custom head-template-file that can be inserted dynamically, if it exists, or if it is specified as an option).
The text was updated successfully, but these errors were encountered:
Both approaches sound like very worthwhile enhancements. I'll see if anyone wants to pick them up as Hacktoberfest projects. If not, I'll get something done.
In the immediate term, does placing a favicon.ico file in the root of your web structure work?
Adding a favicon.ico file in the root of my web structure does not work. However, for now, I am simply opening the index.html file from my local filesystem, and it may be that your suggestion works once the site gets served by a webserver, such as IIS. I don't know.
But the following approach worked for me: I added a couple of favicons to the source\images folder (.png-files in different sizes, not the 16x16 favicon.ico-file I tried adding to the root-folder), and manually modified the index.html file by adding the following to the head-section:
I've added source/includes/_head.md (which is now very unlikely to change / cause merge conflicts), so you should be fine to modify it to contain any html you need to appear in the head element.
Included in v2.1.1-0
Please feel free to reopen the issue if it doesn't meet your needs.
I don't want to modify layout.ejs, since that would make it difficult to upgrade the module, but I see no other way of making changes to the
<head>
-section in the produced HTML.My foremost need is to add a favicon, so that is my basic request. A default favicon in the images-folder could be used, for example, and then overridden similarly to the way it is done with the logo-image.
However, I can foresee other needs as well (such adding Google Analytics, and various-sized apple-touch-icons), so a more general solution would also be welcome (such as a custom head-template-file that can be inserted dynamically, if it exists, or if it is specified as an option).
The text was updated successfully, but these errors were encountered: