]> sipb.mit.edu Git - ikiwiki.git/commitdiff
you don't need to copy all the templates, only page.tmpl
authorhttp://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web>
Sun, 26 Jul 2009 10:48:03 +0000 (06:48 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 26 Jul 2009 10:48:03 +0000 (06:48 -0400)
doc/todo/Add_space_before_slash_in_parent_links.mdwn

index 79044ccc66f8ac44efab6cf485929c02a674f1f7..536980ea8e9cd4e44e5e8ad6b98f50473d91c56b 100644 (file)
@@ -72,3 +72,12 @@ It's almost implicit in some of the discussion above but this can be achieved lo
         </TMPL_LOOP><TMPL_VAR TITLE></h1>
 
 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]]