[Banner] temp banner for every page
This commit is contained in:
parent
d7d0e09bb4
commit
521e2ec13c
@ -29,13 +29,15 @@ def main():
|
|||||||
templateEN = fTempEN.read()
|
templateEN = fTempEN.read()
|
||||||
for page in PAGES:
|
for page in PAGES:
|
||||||
with open(f'pages/sr/{page["name"]}.html') as f:
|
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)
|
html = buildPage(page['name'], page['titleSR'], pageHtml, page['style'], templateSR)
|
||||||
f = open(f'site/{page["name"]}.html', 'w')
|
f = open(f'site/{page["name"]}.html', 'w')
|
||||||
f.write(html)
|
f.write(html)
|
||||||
f.close()
|
f.close()
|
||||||
with open(f'pages/en/{page["name"]}.html') as f:
|
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)
|
html = buildPage(page['name'], page['titleEN'], pageHtml, page['style'], templateEN)
|
||||||
f = open(f'site/en/{page["name"]}.html', 'w')
|
f = open(f'site/en/{page["name"]}.html', 'w')
|
||||||
f.write(html)
|
f.write(html)
|
||||||
|
BIN
site/img/students_bug.jpg
Normal file
BIN
site/img/students_bug.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 158 KiB |
Loading…
Reference in New Issue
Block a user