Archived
0
0
Fork 0

Compare commits

..

No commits in common. "fd3e77d1daa1935d7ebb60adb29f2ef3b13c2634" and "df7d0cff6d4f95a862c323f0836dd03c3fbe44df" have entirely different histories.

9 changed files with 21 additions and 93 deletions

1
.gitignore vendored
View file

@ -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

View file

@ -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: <https://gohugo.io/getting-started/installing>
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!

View file

@ -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!)

View file

@ -1,8 +1,5 @@
#!/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' ' ')"

View file

@ -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

View file

@ -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.

View file

@ -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.

View file

@ -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
}

View file

@ -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);
};
}