slight reorg

master
Joey Hess 2011-01-14 13:07:05 -04:00
parent 0e781b60b8
commit c2fe8b9c89
1 changed files with 9 additions and 5 deletions

View 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