Compare commits

...

10 Commits

Author SHA1 Message Date
c251d29945 [Event] event change 17. Feb fix 2025-02-14 16:25:08 +01:00
41f57f0c12 [Event] event change 17. Feb fix 2025-02-14 16:23:48 +01:00
dbc243276e [Event] event change 17. Feb fix 2025-02-14 16:16:15 +01:00
45d3e9de14 [Event] event change 17. Feb fix 2025-02-14 16:15:08 +01:00
c3101c91b0 [Event] event change 17. Feb 2025-02-14 16:12:48 +01:00
Hugo
027f184c27 Fixes 2025-02-08 11:41:57 +01:00
Hugo
37883bf420 one more 2025-01-31 22:39:06 +01:00
521e2ec13c [Banner] temp banner for every page 2025-01-24 14:35:35 +01:00
Hugo
d7d0e09bb4 Februar 2025-01-22 23:38:59 +01:00
Txrpe
7575622112 Load templates instead of old pages for events_archive 2024-12-28 13:11:37 +01:00
4 changed files with 14 additions and 4 deletions

View File

@@ -29,13 +29,15 @@ def main():
templateEN = fTempEN.read()
for page in PAGES:
with open(f'pages/sr/{page["name"]}.html') as f:
pageHtml = f.read()
pageHtml = "<div><img src='/img/students_bug.jpg' alt='Studenti su nasli bug' /></div>"
pageHtml += f.read()
html = buildPage(page['name'], page['titleSR'], pageHtml, page['style'], templateSR)
f = open(f'site/{page["name"]}.html', 'w')
f.write(html)
f.close()
with open(f'pages/en/{page["name"]}.html') as f:
pageHtml = f.read()
pageHtml = "<div><img src='/img/students_bug.jpg' alt='Students found the bug' /></div>"
pageHtml += f.read()
html = buildPage(page['name'], page['titleEN'], pageHtml, page['style'], templateEN)
f = open(f'site/en/{page["name"]}.html', 'w')
f.write(html)

View File

@@ -226,3 +226,11 @@ datum, vreme, lokacija, tema, tip, link
21-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Sysadmin vežbe, workshop, https://wiki.dmz.rs/en/sysadmin
27-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Svet van linuxa, lecture,
28-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, OpenStreetMap editovanje, meeting, https://osmcal.org/event/3355/
03-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Gaming audio, lecture,
04-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Guitar pedals, lecture workshop,
10-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Lightning talks, lighting,
11-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, TIC-80 gamejam, hack, https://forum.dmz.rs/t/tic-80-game-jam/946
17-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Sysadmin radionica,
18-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Tumbleweed board game implementation (Rust/MCTS/GGEZ), lecture,
24-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Idejno-politička diskusija, discussion
25-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Intro to 3d printing, lecture
Can't render this file because it has a wrong number of fields in line 233.

View 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:

BIN
site/img/students_bug.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB