added readme todo, removed print statements

This commit is contained in:
rra 2020-01-27 10:45:48 +01:00
parent d868d65c74
commit b9c228ed73
2 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,10 @@ It calculates the weight of the HTML page including all image media and returns
it currently is tailored to https://solar.lowtechmagazine.com and needs work in the following areas:
* add options to show file name and generation time
* properly handle subsites plugin (currently it only works for dither+subsites)* make sure it works with --relative-urls flag
* properly handle subsites plugin (currently it only works for dither+subsites)
* make sure it works with --relative-urls flag
* handle static assets
## Use:
To enable the plugin add it to the `PLUGINS` list in `pelicanconf.py`.

View File

@ -113,9 +113,9 @@ def generate_metadata(path, context):
else:
file_name = m.replace(context['SITEURL']+'/', '')
m = os.path.join(output_path, file_name.strip('/'))
print(m)
#print(m)
if os.path.exists(m):
print(m, 'exists')
#print(m, 'exists')
media_size = media_size + os.path.getsize(m)
current_file = os.path.join(output_path, output_file)