]> sipb.mit.edu Git - ikiwiki.git/commitdiff
slight reorg
authorJoey Hess <joey@kitenet.net>
Fri, 14 Jan 2011 17:07:05 +0000 (13:07 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 14 Jan 2011 17:07:05 +0000 (13:07 -0400)
doc/templates.mdwn

index 3c3881a75ce88fa88dc7e0cdd36c5d207d88ff2e..ce0fd8ef8a49bc9d8cddc9d8a29dec31fd16dbd9 100644 (file)
@@ -1,11 +1,6 @@
 [[Ikiwiki]] uses many templates for many purposes. By editing its templates,
 you can fully customise this site.
 
-Templates are located in `/usr/share/ikiwiki/templates` by default;
-the `templatedir` setting can be used to make another directory be
-searched first. Customised templates can also be placed inside the
-"templates/" directory in your wiki's source.
-
 Ikiwiki uses the HTML::Template module as its template engine. This
 supports things like conditionals and loops in templates and is pretty
 easy to learn. All you really need to know to modify templates is this:
@@ -16,6 +11,15 @@ easy to learn. All you really need to know to modify templates is this:
 * To use one block of text if a variable is set and a second if it's not,
   use `<TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF>`
 
+## template files
+
+Template files have the extension `.tmpl`.
+
+Templates are located in `/usr/share/ikiwiki/templates` by default;
+the `templatedir` setting can be used to make another directory be
+searched first. Customised templates can also be placed inside the
+"templates/" directory in your wiki's source.
+
 [[!if test="enabled(template)" then="""
 ## template pages