went through all the linting errors and fixed them
This commit is contained in:
parent
e2140f3421
commit
6c3b0eaaf4
|
@ -86,18 +86,24 @@ def generate_table_index(template=config.template_index, template_nav=config.tem
|
||||||
parsed_set = {}
|
parsed_set = {}
|
||||||
for k, v in all_tags.items():
|
for k, v in all_tags.items():
|
||||||
parsed_set[k] = len(v)
|
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'
|
slugfile = config.build_folder + 'tag_index.html'
|
||||||
with open(slugfile, 'w', encoding=encoding) as fobj:
|
with open(slugfile, 'w', encoding=encoding) as fobj:
|
||||||
fobj.write(current_index_template)
|
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):
|
def generate_html_pages(site_folder, entries, template, sub_pages_list, template_nav):
|
||||||
for entry in entries:
|
for entry in entries:
|
||||||
# Creating navigation
|
# Creating navigation
|
||||||
nav_html = generate_navigation(template_nav)
|
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('')
|
file_loader = FileSystemLoader('')
|
||||||
env = Environment(loader=file_loader)
|
env = Environment(loader=file_loader)
|
||||||
|
|
Loading…
Reference in a new issue