forked from cccb-website-team/www
adjust styling and bump dates etc
This commit is contained in:
parent
476bf0d6d9
commit
a584a5252f
40 changed files with 678 additions and 294 deletions
17
README.md
17
README.md
|
|
@ -30,21 +30,20 @@ This is the website of the CCCB.
|
|||
Every change you make on the project will be reflected in your browser as long
|
||||
as `hugo serve` is running.
|
||||
|
||||
The *"Nächste Veranstaltungen"* table on the home page is generated by
|
||||
post-processing in `./build.sh`, not by Hugo, so it is **not** visible under
|
||||
`hugo serve`. To preview the fully-built site (including the home-page
|
||||
calendar), or to ready the site for upload, run:
|
||||
The *"Nächste Veranstaltungen"* calendar on the home page is rendered by
|
||||
Hugo via the `calendar` shortcode, which fetches `all.ics` client-side.
|
||||
`all.ics` is generated from the individual event pages by `./tools/merge_cals.py`.
|
||||
To preview the fully-built site (including `all.ics`), or to ready the site for
|
||||
upload, run:
|
||||
|
||||
```shell
|
||||
./build.sh
|
||||
python3 -m http.server -d public 1313
|
||||
```
|
||||
|
||||
`build.sh` generates `all.ics` and replaces the `CALENDAR` placeholder in
|
||||
`index.html` with the upcoming-events table. It depends on Python with the
|
||||
`icalendar`, `python-dateutil`, and `pytz` packages, plus a `de_DE.UTF-8`
|
||||
locale (used to format weekday names). Inside `nix develop` these are
|
||||
provided automatically.
|
||||
`build.sh` runs `hugo`, generates `all.ics`, and copies it into `public/`.
|
||||
It depends on Python with the `icalendar`, `python-dateutil`, and `pytz`
|
||||
packages. Inside `nix develop` these are provided automatically.
|
||||
|
||||
To build with *nix*: `nix build '.?submodules=1#production-content'`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue