no layouts, just footers
This commit is contained in:
@@ -16,8 +16,8 @@ you choose to edit them by hand.
|
|||||||
|
|
||||||
A Gollum repository's contents are designed to be human editable. Page content
|
A Gollum repository's contents are designed to be human editable. Page content
|
||||||
is written in `page files` and may be organized into directories any way you
|
is written in `page files` and may be organized into directories any way you
|
||||||
choose. Layouts can be created in `layout files`. Other content (images, PDFs,
|
choose. Special footers can be created in `footer files`. Other content
|
||||||
etc) may also be present and organized in the same way.
|
(images, PDFs, etc) may also be present and organized in the same way.
|
||||||
|
|
||||||
|
|
||||||
## PAGE FILES
|
## PAGE FILES
|
||||||
@@ -38,23 +38,12 @@ formats) will be used as the entrance page to your wiki. If it is missing, an
|
|||||||
automatically generated table of contents will be shown instead.
|
automatically generated table of contents will be shown instead.
|
||||||
|
|
||||||
|
|
||||||
## LAYOUT FILES
|
## FOOTER FILES
|
||||||
|
|
||||||
Layout files allow you to wrap page content with a header, footer, sidebar,
|
Footer files allow you to add a simple footer to your wiki. Footer files must
|
||||||
etc. Layout files must be named `_layout.ext` where the extension is one of
|
be named `_footer.ext` where the extension is one of the supported formats.
|
||||||
the supported formats. Layouts affect all pages in their directory and any
|
Footers affect all pages in their directory and any subdirectories that do not
|
||||||
subdirectories that do not have layout files of their own.
|
have footer files of their own.
|
||||||
|
|
||||||
Inside your layout file, you must use the following content link to specify
|
|
||||||
where the page content should reside:
|
|
||||||
|
|
||||||
[[[content]]]
|
|
||||||
|
|
||||||
Here's a simple example:
|
|
||||||
|
|
||||||
<div id="header">...</div>
|
|
||||||
<div id="content">[[[content]]]</div>
|
|
||||||
<div id="footer">...</div>
|
|
||||||
|
|
||||||
|
|
||||||
## HTML SANITIZATION
|
## HTML SANITIZATION
|
||||||
|
|||||||
Reference in New Issue
Block a user