Compare commits

...

4 Commits

Author SHA1 Message Date
Txrpe
7575622112 Load templates instead of old pages for events_archive 2024-12-28 13:11:37 +01:00
Txrpe
05c4a14ce3 remove page/events-archive 2024-12-28 13:11:37 +01:00
Txrpe
9044c265d5 Load templates in prep.py instead of old pages 2024-12-28 13:11:30 +01:00
Txrpe
52fe66343f remove page/event.html and ignore it 2024-12-28 13:11:30 +01:00
10 changed files with 29 additions and 11 deletions

2
.gitignore vendored
View File

@ -12,3 +12,5 @@ http.access.log
http.error.log
events.ical
.vscode/
events.html
events_archive.html

View File

@ -1,3 +0,0 @@
<h1>Events</h1>
<p>Following list contains all forthcoming events. Held events are listed in <a href="/en/events_archive">archive</a>.</p><br>
<p>We also provide <a href="https://dmz.rs/events.ical">ical file</a></p><br>

View File

@ -1,4 +0,0 @@
<h1>Događaji</h1>
<p>Naredna lista sadrži sve predstojeće događaje. Za listu održanih događaja pogledaj <a href="/events_archive">arhivu</a>.</p><br>
<p>Događaje možeš učitati i sa <a href="https://dmz.rs/events.ical">ical</a> datotekom.</p><br>

View File

@ -141,7 +141,7 @@ for key, value_pair in TYPES_DICT.items():
# Build Serbian Events page
new_events_html = build_html(new_events, DAYS_SR, sr_types)
with open("pages/sr/events.html", "r") as file:
with open("template/events-sr.html", "r") as file:
page_template = ([line for line in file])
with open("pages/sr/events.html", "w") as file:
@ -149,7 +149,7 @@ with open("pages/sr/events.html", "w") as file:
# Build English Events page
new_events_html = build_html(new_events, DAYS_EN, en_types)
with open("pages/en/events.html", "r") as file:
with open("template/events-en.html", "r") as file:
page_template = ([line for line in file])
with open("pages/en/events.html", "w") as file:
@ -157,7 +157,7 @@ with open("pages/en/events.html", "w") as file:
# Build Serbian Archive page
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])
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
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])
with open("pages/en/events_archive.html", "w") as file:

8
template/events-en.html Normal file
View File

@ -0,0 +1,8 @@
<h1>Events</h1>
<p>
Following list contains all forthcoming events. Held events are listed in
<a href="/en/events_archive">archive</a>.
</p>
<br />
<p>We also provide <a href="https://dmz.rs/events.ical">ical file</a></p>
<br />

11
template/events-sr.html Normal file
View File

@ -0,0 +1,11 @@
<h1>Događaji</h1>
<p>
Naredna lista sadrži sve predstojeće događaje. Za listu održanih događaja
pogledaj <a href="/events_archive">arhivu</a>.
</p>
<br />
<p>
Događaje možeš učitati i sa
<a href="https://dmz.rs/events.ical">ical</a> datotekom.
</p>
<br />

View File

@ -0,0 +1,2 @@
<h1>Events archive</h1>
<p>All events that we organized so far. You can find future events on <a href="/en/events">Events page</a></p><br>

View File

@ -0,0 +1,2 @@
<h1>Arhiva događaja</h1>
<p>Svi događaji koje smo do sada organzivali. Predstojeće događaje možeš naći <a href="/events">ovde</a></p><br>