Verified Commit ebc5c6e7 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

fix minor alignments in index

parent e80b69e3
......@@ -183,19 +183,21 @@ list_titles.sort(key=lambda x: x['date'].split('-'), reverse=True)
loop_year = list_titles[0]['year']
# add the first year
index += "<h3>" + loop_year + "</h3>\n"
index += "\n<h3>" + loop_year + "</h3>\n"
index += '\n<ul>\n'
# loop through all pages
for k in range(len(list_titles)):
if list_titles[k]['year'] != loop_year:
loop_year = list_titles[k]['year']
index += "\n</ul>"
index += "<h3>" + loop_year + "</h3>\n"
index += "\n<h3>" + loop_year + "</h3>\n"
index += '\n<ul>\n'
# add the link properly speaking
index += ''.join(list_titles[k]['link'])
index += '\n</ul>\n'
# Read in the file
indexFile = "frozen.md"
filedata = ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment