diff --git a/.gitignore b/.gitignore index 54e16e8..349c2d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ static/all.ics -.envrc # Created by https://www.toptal.com/developers/gitignore/api/windows,linux,macos,hugo # Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,macos,hugo @@ -101,4 +100,4 @@ shell.nix .direnv # Python -.venv +.venv \ No newline at end of file diff --git a/README.md b/README.md index c299d95..a544e7a 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,23 @@ +![CCCB logo](static/img/logo.png) + # CCCB Website This is the website of the CCCB. -![CCCB logo](assets/img/logo.png) - ## Getting started 1. Get Hugo: -2. Clone this repo (`--recursive` is needed to check out submodules) +2. Clone this repo ```shell - git clone --recursive https://git.berlin.ccc.de/cccb-website-team/www.git cccb-website + git clone https://github.com/cccb/www ``` 3. Switch directory ```shell - cd cccb-website + cd www + ``` +3. Fetch Submodules + ```shell + git submodule update --recursive --remote --init ``` ### Run site locally @@ -31,13 +35,13 @@ Every change you make on the project will be reflected in your browser as long a ## Making a change -1. Use your local dev setup (see Getting started) or via the Forgejo editor. +1. Use your local dev setup (see Getting started) or via GitHub editor. 2. Make your change in `staging` branch. 3. Commit (and push) your change. -4. ~~GitHub Actions is running the release workflow.~~ +4. GitHub Actions is running the release workflow. - If successful, check [Staging Website](https://staging.berlin.ccc.de/) if change is correct. 5. Create merge request to merge changes from `staging` to `production` branch. Ask somebody to check merge request or if small change, merge yourself. -6. ~~GitHub Actions is running the release workflow.~~ +6. GitHub Actions is running the release workflow. - If successfull, check [Website](https://berlin.ccc.de/) if change is correct. 7. Profit! diff --git a/TODO.md b/TODO.md index 10121f4..7401796 100644 --- a/TODO.md +++ b/TODO.md @@ -2,8 +2,7 @@ - DSGVO-compliant Datenschutzerklärung reinbasteln - Entscheiden, welche Seiten sonst noch konvertiert werden sollen und welche in die ewigen Datengründe gehen können - - +- add nix config to repo # Done @@ -18,3 +17,4 @@ - Bestehende Datengarten-Termine konvertieren - ggf. template mit frontmatter - Theme forken, alle assets sollten lokal gehosted sein und nicht von irgendwelchen CDNs bezogen werden (HTTP/2 ftw!) + diff --git a/build.sh b/build.sh index 3a07414..11d85bf 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,7 @@ #!/bin/sh -set -e -set -x - hugo $(cat .hugo-params) ./tools/merge_cals.py upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')" cp static/all.ics public/all.ics -sed -i "s#CALENDAR#$upcoming#g" public/index.html +sed -i "s#CALENDAR#$upcoming#g" public/index.html \ No newline at end of file diff --git a/config/_default/menus.de.toml b/config/_default/menus.de.toml index c8bd31f..53f1159 100644 --- a/config/_default/menus.de.toml +++ b/config/_default/menus.de.toml @@ -46,7 +46,7 @@ weight = 10 [[footer]] - name = "Kategorien" + name = "Categories" pageRef = "categories" weight = 20 @@ -56,6 +56,6 @@ weight = 500 [[footer]] - name = "Datenschutz" + name = "Privacy" pageRef = "datenschutz" - weight = 600 + weight = 600 \ No newline at end of file diff --git a/content/veranstaltungen/bastelabend.md b/content/veranstaltungen/bastelabend.md index 964f0a2..29e4f08 100644 --- a/content/veranstaltungen/bastelabend.md +++ b/content/veranstaltungen/bastelabend.md @@ -13,6 +13,4 @@ menu: ![Lötkolben im CCCB](/img/club/27481933907_f240f4232d.jpg) **Jeden 1. und 3. Samstag im Monat ist ab 17 Uhr Bastelabend im Club.** - -Wenn ihr neu seid und den CCCB zum ersten Mal besuchen wollt, kommt am besten an einem Donnerstag zum [Club Discordia](/page/clubdiscordia/), da samstags nicht immer genug Leute da sind, um euch zu empfangen. -Generell sind aber alle herzlich eingeladen, an den Bastelabenden vorbeizukommen. +Wenn ihr neu seid und den CCCB zum ersten Mal besuchen wollt, kommt am besten an einem Donnerstag zum [Club Discordia](/page/clubdiscordia/), da samstags nicht immer genug Leute da sind, um euch zu empfangen. Generell sind aber alle herzlich eingeladen, an den Spieleabenden vorbeizukommen. \ No newline at end of file diff --git a/content/veranstaltungen/spieleabend.md b/content/veranstaltungen/spieleabend.md index f45f256..09db203 100644 --- a/content/veranstaltungen/spieleabend.md +++ b/content/veranstaltungen/spieleabend.md @@ -13,6 +13,4 @@ menu: ![Dorfromantik spielen im CCCB](/img/club/dorfromantik-im-cccb.jpg) **Jeden 2. und 4. Samstag im Monat ist ab 17 Uhr Spieleabend im Club.** - -Wenn ihr neu seid und den CCCB zum ersten Mal besuchen wollt, kommt am besten an einem Donnerstag zum [Club Discordia](/page/clubdiscordia/), da samstags nicht immer genug Leute da sind, um euch zu empfangen. -Generell sind aber alle herzlich eingeladen, an den Spieleabenden vorbeizukommen. +Wenn ihr neu seid und den CCCB zum ersten Mal besuchen wollt, kommt am besten an einem Donnerstag zum [Club Discordia](/page/clubdiscordia/), da samstags nicht immer genug Leute da sind, um euch zu empfangen. Generell sind aber alle herzlich eingeladen, an den Bastelabenden vorbeizukommen. \ No newline at end of file diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 6cc6b35..0000000 --- a/flake.lock +++ /dev/null @@ -1,27 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1741332913, - "narHash": "sha256-ri1e8ZliWS3Jnp9yqpKApHaOo7KBN33W8ECAKA4teAQ=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "20755fa05115c84be00b04690630cb38f0a203ad", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-24.11", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 73e94d9..0000000 --- a/flake.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ - description = "A flake containing a development environment for the CCCB website."; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; - }; - - outputs = - { self, nixpkgs }: - let - forAllSystems = - f: - nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( - system: - f rec { - pkgs = nixpkgs.legacyPackages.${system}; - inherit system; - } - ); - in - { - devShells = forAllSystems ( - { pkgs, ... }: - { - default = pkgs.mkShell rec { - packages = with pkgs; [ - hugo - go - (pkgs.python3.withPackages (python-pkgs: [ - python-pkgs.icalendar - python-pkgs.pytz - ])) - shellcheck - ]; - }; - } - ); - - formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-rfc-style); - }; -}