Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
r3-pages
Commits
ebc5c6e7
Verified
Commit
ebc5c6e7
authored
Mar 10, 2022
by
Laurent Heirendt
✈
Browse files
fix minor alignments in index
parent
e80b69e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/generateIndex.py
View file @
ebc5c6e7
...
...
@@ -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
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment