diff options
-rw-r--r-- | doc/templates.mdwn | 14 |
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 |