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 %} -
  • {{ game.time }}UTC {{ game.title }}
  • +
  • {{ game.time }}UTC {{ game.title }}{%if game.tournament %} Tournament{% endif %}
  • {% else %} -
  • {{ game.title }}
  • +
  • {{ game.title }}{%if game.tournament %} Tournament{% endif %}
  • {% endif %} {% if game.extras %}