aboutsummaryrefslogtreecommitdiff
path: root/doc/templates.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-01-14 13:07:05 -0400
committerJoey Hess <joey@kitenet.net>2011-01-14 13:07:05 -0400
commitc2fe8b9c898e11a1540adfbf17f4905ff6f7cc6f (patch)
treef2f67726ec143a8195821c871575b76cba7ffc5f /doc/templates.mdwn
parent0e781b60b8a9d7bdca160be067acfa9c31b8b197 (diff)
downloadikiwiki-c2fe8b9c898e11a1540adfbf17f4905ff6f7cc6f.tar
ikiwiki-c2fe8b9c898e11a1540adfbf17f4905ff6f7cc6f.tar.gz
slight reorg
Diffstat (limited to 'doc/templates.mdwn')
-rw-r--r--doc/templates.mdwn14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/templates.mdwn b/doc/templates.mdwn
index 3c3881a75..ce0fd8ef8 100644
--- a/doc/templates.mdwn
+++ b/doc/templates.mdwn
@@ -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