diff options
Diffstat (limited to 'templates/themes/ukko/theme.php')
| -rw-r--r-- | templates/themes/ukko/theme.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php index 92dfb317..ee2707bf 100644 --- a/templates/themes/ukko/theme.php +++ b/templates/themes/ukko/theme.php @@ -11,10 +11,12 @@ return; } - if ($config['smart_build']) { + $action = generation_strategy('sb_ukko', array()); + + if ($action == 'delete') { file_unlink($settings['uri'] . '/index.html'); } - else { + elseif ($action == 'rebuild') { file_write($settings['uri'] . '/index.html', $ukko->build()); } } |
