From c2fe8b9c898e11a1540adfbf17f4905ff6f7cc6f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 14 Jan 2011 13:07:05 -0400 Subject: [PATCH] slight reorg --- doc/templates.mdwn | 14 +++++++++----- 1 file 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 `textother text` +## 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 -- 2.32.0.93.g670b81a890