define slugify function for plugin extract_headings in pelican config file