|rra b9c228ed73 added readme todo, removed print statements||3 weeks ago|
|README.md||3 weeks ago|
|__init__.py||3 months ago|
|page_metadata.py||3 weeks ago|
A Pelican plugin to add the total page size to each generated page of your site.
It calculates the weight of the HTML page including all image media and returns that in a human readable format (B, KB, MB).
it currently is tailored to https://solar.lowtechmagazine.com and needs work in the following areas:
To enable the plugin add it to the
PLUGINS list in
Add a div with id
page-size to your template and
page_metadata will place the result there.
To use this plugin first import
strftime at the top of
from time import strftime
NOW = strftime('%c') somewhere in that document as well. This saves the time of generation as a variable that is usable by the