Explorar o código

Fix outdated themes documentation for indexes.

The one thing I miss in the docs sweep before the last release
and my friend trips all over it. God dammit software.
Brit Butler %!s(int64=11) %!d(string=hai) anos
pai
achega
6ea3166a8b
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      docs/themes.md

+ 4 - 4
docs/themes.md

144
 - **index**        This is the meat of the content. This variable has
144
 - **index**        This is the meat of the content. This variable has
145
                    the following keys:
145
                    the following keys:
146
    - `id`,    the name of the page that will be rendered
146
    - `id`,    the name of the page that will be rendered
147
-   - `posts`, a list of posts (see below)
147
+   - `content`, a list of content (see below)
148
    - `title`, a string title to display to the user
148
    - `title`, a string title to display to the user
149
 - **prev**         If this index file is part of a chain, the `id`
149
 - **prev**         If this index file is part of a chain, the `id`
150
                    of the previous index html in the chain.
150
                    of the previous index html in the chain.
189
 ```
189
 ```
190
 {namespace coleslaw.theme.trivial}
190
 {namespace coleslaw.theme.trivial}
191
 {template index}
191
 {template index}
192
-{foreach $post in $index.posts}
193
-<h1>{$post.title}</h1>
194
-  {$post.text |noAutoescape}
192
+{foreach $obj in $index.content}
193
+<h1>{$obj.title}</h1>
194
+  {$obj.text |noAutoescape}
195
 {/foreach}
195
 {/foreach}
196
 {/template}
196
 {/template}
197
 ```
197
 ```