diff --git a/README.md b/README.md index aa752ee..0434e2d 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/page_metadata.py b/page_metadata.py index f9135b2..91eb5cc 100644 --- a/page_metadata.py +++ b/page_metadata.py @@ -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)