diff options
| author | 2016-11-15 14:18:46 -0300 | |
|---|---|---|
| committer | 2016-11-15 14:18:46 -0300 | |
| commit | ffb671c61a24a9086343b54bad080e145ff33fc5 (patch) | |
| tree | 2c5291f7a34edf4afdc8e07887a148291bfa3fa1 /docs/internals.txt | |
| parent | 4e3224c012df9f74f010eb92203520515e8537b9 (diff) | |
New upstream version 7.8.1upstream/7.8.1
Diffstat (limited to 'docs/internals.txt')
| -rw-r--r-- | docs/internals.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/internals.txt b/docs/internals.txt index 4fbac76..39055e8 100644 --- a/docs/internals.txt +++ b/docs/internals.txt @@ -88,14 +88,14 @@ one of the existing ones. You can do doctests, you can do unit tests, you can do integration tests. There is support for all of them. -Posts and Stories ------------------ +Posts and Pages +--------------- -Nikola has a concept of posts and stories. Both are more or less the same thing, except -posts are added into RSS feeds and stories are not. All of them are in a list called +Nikola has a concept of posts and pages. Both are more or less the same thing, except +posts are added into RSS feeds and pages are not. All of them are in a list called "the timeline" formed by objects of class ``Post``. -When you are creating a task that needs the list of posts and/or stories (for example, +When you are creating a task that needs the list of posts and/or pages (for example, the RSS creation plugin) on task execution time, your plugin should call ``self.site.scan_posts()`` in ``gen_tasks`` to ensure the timeline is created and available in ``self.site.timeline``. You should not modify the timeline, because it will cause consistency issues. |
