From: http://smcv.pseudorandom.co.uk/ Date: Sun, 26 Jul 2009 10:48:03 +0000 (-0400) Subject: you don't need to copy all the templates, only page.tmpl X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/d8c5e4ab38f1f02e007965453ae72146b71edd81?hp=6f88e3631ef5d29ec5e3fe3af5b35c4e3c0c04bd you don't need to copy all the templates, only page.tmpl --- diff --git a/doc/todo/Add_space_before_slash_in_parent_links.mdwn b/doc/todo/Add_space_before_slash_in_parent_links.mdwn index 79044ccc6..536980ea8 100644 --- a/doc/todo/Add_space_before_slash_in_parent_links.mdwn +++ b/doc/todo/Add_space_before_slash_in_parent_links.mdwn @@ -72,3 +72,12 @@ It's almost implicit in some of the discussion above but this can be achieved lo This is what I do on my site for example. -- [[Jon]] + +> You don't actually need to fork the whole directory, "only" `page.tmpl` - +> put `templatedir => "/foo/templates"` in your setup file, copy `page.tmpl` +> to that directory, and modify it there. IkiWiki will look in `templatedir` +> first, then fall back to its default templates if any are missing from +> `templatedir`. +> +> (Admittedly, `page.tmpl` is the hardest to maintain a fork of, because it +> tends to change whenever a new plugin is added...) --[[smcv]]