[Banner] temp banner for every page

This commit is contained in:
coja 2025-01-24 14:35:35 +01:00
parent d7d0e09bb4
commit 521e2ec13c
Signed by: coja
GPG Key ID: 245827C2A1FA8F09
2 changed files with 4 additions and 2 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)

BIN
site/img/students_bug.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB