diff --git a/README.md b/README.md index 7e43f41..c780336 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,35 @@ The webpage will display "OFFLINE" and not attempt to show the server stats. The password for the admin panel as well as for game servers that support admin password is stored in `/etc/gameserverpassword`. The username for the admin panel is just `onfoss`. +## Website + +The website is generated using Jekyll which uses a config.yml that is generated by the deploy script. Additionally, there is a YAML file called events.yml in the _data directory where events are stored. The formatting is: + +``` +- date: 2022-12-17T14:00:00UTC + intro: "onFOSS-LAN hosted by DeathByDenim" + games: + - time: "14:00" + title: "Get together" + - time: "14:30" + title: "Doom (ODAMEX) XMAS mod" + - time: "15:15" + title: "Teeworlds" + tournament: true + - time: "16:00" + title: "OpenSpades" + - time: "17:00" + title: "Break" + - time: "18:00" + title: "Lix" + - time: "18:30" + title: "Free Play!" + extras: ["Shattered Paradise"] +``` +Each game must have a title and it optionally can have a time as well. The optional field extras lists games that were played as part of a bigger category, in this example the free play section. + +Finally, you can also specify tournament which will make this game appear in the tournament page. + ## Repository The main version of this git repository is on [git.libregaming.org](https://git.libregaming.org/DeathByDenim/gameserver). There is a mirror on [Github](https://github.com/DeathByDenim/gameserver) diff --git a/website/_includes/event.html b/website/_includes/event.html index 4747b6f..1b88c26 100644 --- a/website/_includes/event.html +++ b/website/_includes/event.html @@ -13,9 +13,9 @@ {% for game in event.games %} {% assign time = game.time | split: ":"%} {% if game.time %} -
See schedule for more information.
-We use Mumble voice chat on mumble://hribhrib.at. It is the main mode of cummunication during the event.
We also have regular text chat for any time use. You can choose the protocol you like and the program you like, they all point to the same thing in the end
No tournaments have been planned
+ {% assign sitetime = site.time | date: "%FT%T" %} + {% assign nextevent = site.data.events | where_exp: "item", "item.date >= sitetime" | last %} + {% assign tournaments = nextevent.games | where_exp: "item", "item.tournament" %} + {% if tournaments and tournaments.size != 0 %} + +There will be a tournament for the next event on {{ nextevent.date | date: "%a, %b %d, %Y" }}
+No tournaments have been planned for the next event.
+ {% endif %} +By joining the tournament you accept following rules:
+The most important rule is: HAVE FUN! Surely, the tournament is competitive, however, don't forget why we are all here - to have fun playing games together!
+If you cheat you will get banned from this and all upcoming tournaments! Cheating is: manipulating the game for your advantage. So every third-party tool that help you is not allowed! Due to the blessing of FOSS games can be modified, modification that give you a advantage is also considered cheating! So take the official binaries to play the tournament! If no binaries are available and you have to compile it on your own you are not allowed to modify it. If there is any confusion contact us in advance and we will find a solution.
+Griefers going to be kicked immediately and if it happens frequent you get banned for upcoming tournaments. + We are all human beings and hopefully capable of being nice to each other! So respect each other and there will not be any problems! However, also counting for griefing is: Register to the event and do not show up without an excuse; Leave the tournament while it is still ongoing and you have to still play any rounds.