diff --git a/.gitignore b/.gitignore index 86197ef..09d3036 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ venv/ site/*.html +site/en/*.html site/atom_blog.xml site/atom_events.xml poster.html diff --git a/build_pages.py b/build_pages.py index d82a109..edda7fd 100644 --- a/build_pages.py +++ b/build_pages.py @@ -9,10 +9,11 @@ PAGES = [ {'name': 'webring', 'titleSR': 'Webring', 'titleEN': 'Webring', 'style': ''}, ] -def buildPage(pageTitle: str, pageHtml: str, pageStyle: str, template: str) -> str: +def buildPage(filename: str, pageTitle: str, pageHtml: str, pageStyle: str, template: str) -> str: template = template.replace('', pageTitle) style = '' if not pageStyle else f'' template = template.replace('', style) + template = template.replace('PAGE_NAME', filename) template = template.replace('', pageHtml) return template @@ -24,10 +25,16 @@ def main(): for page in PAGES: with open(f'pages/sr/{page["name"]}.html') as f: pageHtml = f.read() - html = buildPage(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.write(html) f.close() + with open(f'pages/en/{page["name"]}.html') as f: + 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) + f.close() if __name__ == '__main__': main() \ No newline at end of file diff --git a/pages/en/account.html b/pages/en/account.html new file mode 100644 index 0000000..3599186 --- /dev/null +++ b/pages/en/account.html @@ -0,0 +1,7 @@ +
If you have created an account on dmz.rs, you can use our XMPP and e-mail server, as well as other services that support LDAP login.
+
For more on XMPP see this tutorial.
+
You can see settings for the Thundebird mail client on this image.
+ +
+
+
diff --git a/pages/en/contact.html b/pages/en/contact.html new file mode 100644 index 0000000..866a0cf --- /dev/null +++ b/pages/en/contact.html @@ -0,0 +1,5 @@ +
You can send mail to dmz@dmz.rs or you can register on our Forum.
+Also, we are available on the Fediverse!
+If you find a bug on the site, please do tell us. We would be very grateful.
diff --git a/pages/en/events.html b/pages/en/events.html new file mode 100644 index 0000000..f90dc54 --- /dev/null +++ b/pages/en/events.html @@ -0,0 +1 @@ ++ We are Decentrala - a group of enthusiasts gathered around the idea of decentralization and knowledge sharing. + Here are some more facts about us: +
+Bitcoin: bc1qjhsfgq79wuzzv32yml9zglwzf9qcwfj3atuy74
+Monero: 8BESz45LnxrgCwZP32KieiN1D4LinCfsS1YjdFHfGXrVCmPs35167QsW1gd7qbff4UAtBbT6oWrkbfZnJm71HornVRiRZFS
++ If you are still interested, you can create an account + on our server which will enable the use of all our services. + If you want to see first how it all looks, you can come to one of our + event, and meet us there! +
diff --git a/pages/en/services.html b/pages/en/services.html new file mode 100644 index 0000000..0ba634a --- /dev/null +++ b/pages/en/services.html @@ -0,0 +1,54 @@ +Service | +Description | +
---|---|
E-mail account that you can use with any e-mail client (for example, with the Thunderbird). | +|
Forum | +Forum for general discussion and event organization. | +
Chat | ++ We have our XMPP server, on which you can make an account. + If you already have an account, you can find us at group decentrala@conference.dmz.rs. + | +
Git | +Gitea instance on which we host our code and resources (including the code for this site). + | +
Wiki | +Wiki.js instance on which we publish documentation for our projects, + events resources, and tutorials. + | +
Search | +SearXNG instance used for Web searching. | +
Pastebin | +PrivateBin instance we use for sharing text files | +
Soft Serve | ++ Soft Serve instance that we use as a replacement for the Gitea service. + Soft Serve works entirely from the terminal. + | +
+ These are some of the services we currently maintain on our servers. + To use these services, you can register for each service separately, + or you can create a unique account + on our server and use all services with the same account. +
diff --git a/pages/en/webring.html b/pages/en/webring.html new file mode 100644 index 0000000..03913f9 --- /dev/null +++ b/pages/en/webring.html @@ -0,0 +1,3 @@ +Datum | -Vreme | -Mesto | -Tema | -
---|---|---|---|
Ponedeljak, 7. Avgust 2023. | -19:00h | -DC Krov | -Linux ricing | -
Utorak, 8. Avgust 2023. | -19:00h | -DC Krov | -Lambda račun | -
Ponedeljak, 14. Avgust 2023. | -19:00h | -DC Krov | -Linux distro diskusija | -
Utorak, 15. Avgust 2023. | -19:00h | -DC Krov | -Pirati 777 mora | -
Ponedeljak, 21. Avgust 2023. | -19:00h | -DC Krov | -Python vežbe | -
Utorak, 22. Avgust 2023. | -19:00h | -DC Krov | -Autentifikacija na internetu | -
Ponedeljak, 28. Avgust 2023. | -19:00h | -DC Krov | -Podešvanje Mail servera | -
Utorak, 29. Avgust 2023. | -19:00h | -DC Krov | -Prevođenje wiki-ja | -
Datum | Vreme | Mesto | Tema |
---|
Date | \nTime | \nPlace | \nTheme | \n
---|
Date | Time | Place | Topic |
---|