Attempting fix suggested by (#getpelican/pelican-plugins/232)