I would like to have different favicons for different parts (folders) of my Ikiwiki site, like you can have different CSS files via the localstyle plugin. Is this possible? If not, could it be made possible?
I would like to have different favicons for different parts (folders) of my Ikiwiki site, like you can have different CSS files via the localstyle plugin. Is this possible? If not, could it be made possible?
You could use pagetemplate to override all of
page.tmpl
, but that's using a sledgehammer to crack a nut.Another way to do it would be to modify
IkiWiki/Plugins/favicon.pm
to usebestlink
to find the favicon, like localstyle does. If you made it a config option (localfavicon => 1
or something) it could probably be included in ikiwiki as part of the official favicon plugin?Another way would be to have a new
localfavicon
plugin which overrides the template variable from favicon, usinglast => 1
to make sure it "wins".