Added a comment
[ikiwiki.git] / doc / forum / Can_I_have_different_favicons_for_each_folder__63__ / comment_1_a01112ba235e2f44a7655c36ef680e7e._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="comment 1"
5  date="2011-11-21T11:37:02Z"
6  content="""
7 You could use [[plugins/pagetemplate]] to override all of `page.tmpl`, but
8 that's using a sledgehammer to crack a nut.
9
10 Another way to do it would be to modify `IkiWiki/Plugins/favicon.pm`
11 to use `bestlink` to find the favicon, like [[plugins/localstyle]] does.
12 If you made it a config option (`localfavicon => 1` or something)
13 it could probably be included in ikiwiki as part of the official
14 [[plugins/favicon]] plugin?
15
16 Another way would be to have a new `localfavicon` plugin which overrides
17 the template variable from [[plugins/favicon]], using `last => 1` to
18 make sure it \"wins\".
19 """]]