Skip to content

Commit

Permalink
Depends on site.timeline
Browse files Browse the repository at this point in the history
Use utils.config_changed({1: self.site.timeline}) as dependecy. So,
when a post is written, changed or deleted the "posts.json" is
re-generated to be up to date.
  • Loading branch information
humitos committed Jun 4, 2015
1 parent 32f0a23 commit bcb0e5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion v6/random_post/random_post.plugin
Expand Up @@ -8,6 +8,6 @@ MaxVersion = 7.2.0

[Documentation]
Author = Manuel Kaufmann
Version = 0.1
Version = 0.2
Website = http://plugins.getnikola.com/#random_post
Description = Show a random post
2 changes: 1 addition & 1 deletion v6/random_post/random_post.py
Expand Up @@ -59,7 +59,7 @@ def gen_tasks(self):
(create_json, (output_filename, urls)),
(create_index, (output_index, )),
],
'uptodate': [utils.config_changed(kw)],
'uptodate': [utils.config_changed({1: self.site.timeline})],
}


Expand Down
4 changes: 1 addition & 3 deletions v6/random_post/requirements.txt
@@ -1,3 +1 @@
Nikola
doit
logbook

0 comments on commit bcb0e5d

Please sign in to comment.