went through all the linting errors and fixed them

This commit is contained in:
Anish Lakhwara 2022-02-26 21:24:18 +10:00
parent e2140f3421
commit 6c3b0eaaf4

View file

@ -86,18 +86,24 @@ def generate_table_index(template=config.template_index, template_nav=config.tem
parsed_set = {}
for k, v in all_tags.items():
parsed_set[k] = len(v)
current_index_template = template.render(index_urls=parsed_set, page_date=None, page_tags=None, page_navigation=generate_navigation(template_nav), page_title='Piles', config=config)
current_index_template = template.render(index_urls=parsed_set,
page_date=None,
page_tags=None,
page_navigation=generate_navigation(template_nav),
page_title='Piles',
config=config)
slugfile = config.build_folder + 'tag_index.html'
with open(slugfile, 'w', encoding=encoding) as fobj:
fobj.write(current_index_template)
# Generates html files in the site folder, using the entries and the template.
# Generates html files in the site folder, using the entries and the template
def generate_html_pages(site_folder, entries, template, sub_pages_list, template_nav):
for entry in entries:
# Creating navigation
nav_html = generate_navigation(template_nav)
# Replaces all occurrences of build_url in the template files (assets, urls, etc)
# Replaces all occurrences of build_url in the template
# (assets, urls, etc)
file_loader = FileSystemLoader('')
env = Environment(loader=file_loader)