You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Simple <ahref="styling/">styling adaptations</a> include customising the colour scheme, the typography, or choosing the code highlighting style.</p>
<p>Any files that are not Markdown pages <code>*.md</code>, or templates <code>/templates/*</code>, are treated as media documents and are included in the website without modification.</p>
82
+
<p>The following context is passed to the template rendering...</p>
83
+
<table>
84
+
<thead>
85
+
<tr>
86
+
<th><em>Variable</em></th>
87
+
<th><em>Description</em></th>
88
+
</tr>
89
+
</thead>
90
+
<tbody>
91
+
<tr>
92
+
<td><code>page</code></td>
93
+
<td>The markdown page.</td>
94
+
</tr>
95
+
<tr>
96
+
<td><code>page.html</code></td>
97
+
<td>The page contents, rendered as HTML.</td>
98
+
</tr>
99
+
<tr>
100
+
<td><code>page.text</code></td>
101
+
<td>The text of the page, as markdown.</td>
102
+
</tr>
103
+
<tr>
104
+
<td><code>page.path</code></td>
105
+
<td>The path of the source file.</td>
106
+
</tr>
107
+
<tr>
108
+
<td><code>page.url</code></td>
109
+
<td>The URL from which the page is served.</td>
110
+
</tr>
111
+
<tr>
112
+
<td><code>page.toc</code></td>
113
+
<td>The table of contents for the page, as HTML.</td>
114
+
</tr>
115
+
<tr>
116
+
<td><code>nav</code></td>
117
+
<td>The site navigation.</td>
118
+
</tr>
119
+
<tr>
120
+
<td><code>nav.html</code></td>
121
+
<td>The site navigation, rendered into HTML.</td>
122
+
</tr>
123
+
<tr>
124
+
<td><code>nav.previous</code></td>
125
+
<td>The previous page, as configured in the nav.</td>
<p>Any files ending with the <code>*.md</code> extension are treated as markdown pages, and rendered into HTML, then included in the base template.</p>
155
+
<p>The following are treated as index pages...</p>
156
+
<ul>
157
+
<li><code>README.md</code> - Served as <code>/</code>.</li>
158
+
<li><code>index.md</code> - Served as <code>/</code>.</li>
159
+
</ul>
160
+
<p>All other pages are lowercased, and served from a URL without the markdown extension...</p>
161
+
<ul>
162
+
<li><code>CONTRIBUTING.md</code> - Served as <code>/contributing/</code>.</li>
<p>Any files that are not Markdown pages <code>*.md</code>, or templates <code>/templates/*</code>, are treated as static media and are included in the website without modification.</p>
76
166
<p>This can include images, stylesheets, javascript, fonts, video and audio.</p>
77
-
<p>The default theme includes the following media documents...</p>
167
+
<p>The default theme includes the following static media...</p>
<p>You can override these locally to style the color scheme, the typography & layout, or to adapt the <code>highlight.js</code> code highlighting.</p>
87
176
88
-
<divclass="pagination">
89
-
90
-
<aclass="previous" href="../navigation/">← Site Navigation</a>
91
-
92
-
93
-
</div>
94
-
177
+
<divclass="pagination">
178
+
179
+
<aclass="previous" href="../navigation/">← Site Navigation</a>
0 commit comments