use jinja2 to generate html for search engine index