-
Notifications
You must be signed in to change notification settings - Fork 5
Templates
trans edited this page Jul 21, 2012
·
4 revisions
If you don't like the plain vanilla default Smeagol wiki style then you can specify your own HTML, CSS and JavaScript to build a custom look and feel. To setup a custom template, add _layouts/default.mustache
to the root of your wiki. This will contain your custom HTML wrapper and, in turn, can include any custom CSS or JavaScript files.
Mustache is a logic-less templating language. It allows you to specify your HTML formatting around your page content in a simple way. Please read the documentation on the Mustache web site and refer to the default Smeagol template in the source repository.
The following properties are available to the Mustache template:
-
wiki_title
- The title of the wiki. This is specified in the Settings file. -
title
- The title of the current page. -
content
- The HTML formatted content of the current wiki page. -
author
- The author of the current version of the current wiki page. -
date
- The revision date of the current version of the current wiki page. -
not_home?
- A boolean flag stating if the current page is the home page. -
tracking_id
- The Google Analytics tracking identifier specified in the settings file. -
menu_html
- The HTML generated from the menu in the Settings file.