Load templates instead of old pages for events_archive
This commit is contained in:
parent
279a85e501
commit
7ebf7078ff
4
prep.py
4
prep.py
@ -157,7 +157,7 @@ with open("pages/en/events.html", "w") as file:
|
|||||||
|
|
||||||
# Build Serbian Archive page
|
# Build Serbian Archive page
|
||||||
past_events_html = build_html(past_events, DAYS_SR, sr_types)
|
past_events_html = build_html(past_events, DAYS_SR, sr_types)
|
||||||
with open("pages/sr/events_archive.html", "r") as file:
|
with open("template/events_archive-sr.html", "r") as file:
|
||||||
page_template = ([line for line in file])
|
page_template = ([line for line in file])
|
||||||
|
|
||||||
with open("pages/sr/events_archive.html", "w") as file:
|
with open("pages/sr/events_archive.html", "w") as file:
|
||||||
@ -165,7 +165,7 @@ with open("pages/sr/events_archive.html", "w") as file:
|
|||||||
|
|
||||||
# Build English Archive page
|
# Build English Archive page
|
||||||
past_events_html = build_html(past_events, DAYS_EN, en_types)
|
past_events_html = build_html(past_events, DAYS_EN, en_types)
|
||||||
with open("pages/en/events_archive.html", "r") as file:
|
with open("template/events_archive-en.html", "r") as file:
|
||||||
page_template = ([line for line in file])
|
page_template = ([line for line in file])
|
||||||
|
|
||||||
with open("pages/en/events_archive.html", "w") as file:
|
with open("pages/en/events_archive.html", "w") as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user