Skip to content

Commit

Permalink
Fix post data example in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 28, 2017
1 parent 0d360a0 commit d7386e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion state_data.json
@@ -1,3 +1,3 @@
{
"last_deploy": "2017-05-26T13:57:34.392951"
"last_deploy": "2017-05-28T08:36:52.035700"
}
4 changes: 2 additions & 2 deletions stories/manual.txt
Expand Up @@ -1172,8 +1172,8 @@ it will be replaced by "baz".

Individual posts can also have a data file. Those are specified using the
``data`` meta field (path relative to ``conf.py``, can be different in
different languages). Those are accessible as eg.
``${post.meta('data')['bar']`` in templates. `Template-based shortcodes`_ are a
different post languages). Those are accessible as eg.
``${post.data['bar']}`` in templates. `Template-based shortcodes`_ are a
good idea in this case.

Data files can be useful for eg. auto-generated sites, where users provide
Expand Down

0 comments on commit d7386e3

Please sign in to comment.