Skip to content
Permalink
Browse files

Depends on site.timeline

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 bcb0e5dc5710887df843b1f85d2136c0d74d6a6e
Showing with 3 additions and 5 deletions.
  1. +1 −1 v6/random_post/random_post.plugin
  2. +1 −1 v6/random_post/random_post.py
  3. +1 −3 v6/random_post/requirements.txt
@@ -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
@@ -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})],
}


@@ -1,3 +1 @@
Nikola
doit
logbook

0 comments on commit bcb0e5d

Please sign in to comment.
You can’t perform that action at this time.