blob: 30610a54c5601679b1c580d17b2dabc4eb0d88bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<h3><code>.index</code> is the template of children pages in the subtree</h3>
<p>When a directory contains a file named <code>.index</code>, all files in children directories are going to use it as template.</p>
<p>An <code>.index</code> file is a normal html file, except that a few templates get replaced by the server generated content:
<ul>
<li><code>{‌{ post }}</code> gets replaced by the content of the post resolved by the HTML path</li>
<li><code>{‌{ nav }}</code> gets replaced by the server generated navbar, which is to be placed anywhere. This template places it next to the title</li>
</ul>
</p>
<p>The role of <code>.index</code> is thus to structure and composite in a relatively minimalistic manner the componants that make up a page of the site.</p>
|