diff options
Diffstat (limited to 'plugins/archives-index.lua')
-rw-r--r-- | plugins/archives-index.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/archives-index.lua b/plugins/archives-index.lua index aceb7a9..c3dc4aa 100644 --- a/plugins/archives-index.lua +++ b/plugins/archives-index.lua @@ -8,12 +8,19 @@ if Value.is_string(container_content) then end template = nil +pages = {} if container_content then env['contents'] = Table.take(site_index, container_content) template = "index_short_template_file" else env['contents'] = site_index + + template = Sys.read_file(config['index_rss_template_file']) + + path = Sys.join_path(target_dir, 'index.xml') + Sys.write_file(path, String.render_template(template, env)) + template = "index_full_template_file" end |