Compare commits

..

No commits in common. "75756221126c40f2a5292caeddb6e5cef277f3a8" and "a27ca527f88845fa75599a7a33d41f3158de4d2a" have entirely different histories.

10 changed files with 11 additions and 29 deletions

2
.gitignore vendored
View File

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

3
pages/en/events.html Normal file
View File

@ -0,0 +1,3 @@
<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

4
pages/sr/events.html Normal file
View File

@ -0,0 +1,4 @@
<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

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("template/events-sr.html", "r") as file:
with open("pages/sr/events.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("template/events-en.html", "r") as file:
with open("pages/en/events.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("template/events_archive-sr.html", "r") as file:
with open("pages/sr/events_archive.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("template/events_archive-en.html", "r") as file:
with open("pages/en/events_archive.html", "r") as file:
page_template = ([line for line in file])
with open("pages/en/events_archive.html", "w") as file:

View File

@ -1,8 +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,11 +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

@ -1,2 +0,0 @@
<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

@ -1,2 +0,0 @@
<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>