forked from cccb-website-team/www
Compare commits
No commits in common. "fd3e77d1daa1935d7ebb60adb29f2ef3b13c2634" and "df7d0cff6d4f95a862c323f0836dd03c3fbe44df" have entirely different histories.
fd3e77d1da
...
df7d0cff6d
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
||||||
static/all.ics
|
static/all.ics
|
||||||
.envrc
|
|
||||||
|
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/windows,linux,macos,hugo
|
# 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
|
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,macos,hugo
|
||||||
|
|
20
README.md
20
README.md
|
@ -1,19 +1,23 @@
|
||||||
|

|
||||||
|
|
||||||
# CCCB Website
|
# CCCB Website
|
||||||
|
|
||||||
This is the website of the CCCB.
|
This is the website of the CCCB.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
1. Get Hugo: <https://gohugo.io/getting-started/installing>
|
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
|
```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
|
3. Switch directory
|
||||||
```shell
|
```shell
|
||||||
cd cccb-website
|
cd www
|
||||||
|
```
|
||||||
|
3. Fetch Submodules
|
||||||
|
```shell
|
||||||
|
git submodule update --recursive --remote --init
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run site locally
|
### 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
|
## 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.
|
2. Make your change in `staging` branch.
|
||||||
3. Commit (and push) your change.
|
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.
|
- 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.
|
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.
|
- If successfull, check [Website](https://berlin.ccc.de/) if change is correct.
|
||||||
7. Profit!
|
7. Profit!
|
||||||
|
|
||||||
|
|
4
TODO.md
4
TODO.md
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
- DSGVO-compliant Datenschutzerklärung reinbasteln
|
- DSGVO-compliant Datenschutzerklärung reinbasteln
|
||||||
- Entscheiden, welche Seiten sonst noch konvertiert werden sollen und welche in die ewigen Datengründe gehen können
|
- Entscheiden, welche Seiten sonst noch konvertiert werden sollen und welche in die ewigen Datengründe gehen können
|
||||||
|
- add nix config to repo
|
||||||
|
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
|
|
||||||
|
@ -18,3 +17,4 @@
|
||||||
- Bestehende Datengarten-Termine konvertieren
|
- Bestehende Datengarten-Termine konvertieren
|
||||||
- ggf. template mit frontmatter
|
- ggf. template mit frontmatter
|
||||||
- Theme forken, alle assets sollten lokal gehosted sein und nicht von irgendwelchen CDNs bezogen werden (HTTP/2 ftw!)
|
- Theme forken, alle assets sollten lokal gehosted sein und nicht von irgendwelchen CDNs bezogen werden (HTTP/2 ftw!)
|
||||||
|
|
||||||
|
|
3
build.sh
3
build.sh
|
@ -1,8 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
hugo $(cat .hugo-params)
|
hugo $(cat .hugo-params)
|
||||||
./tools/merge_cals.py
|
./tools/merge_cals.py
|
||||||
upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"
|
upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[[footer]]
|
[[footer]]
|
||||||
name = "Kategorien"
|
name = "Categories"
|
||||||
pageRef = "categories"
|
pageRef = "categories"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
|
||||||
|
@ -56,6 +56,6 @@
|
||||||
weight = 500
|
weight = 500
|
||||||
|
|
||||||
[[footer]]
|
[[footer]]
|
||||||
name = "Datenschutz"
|
name = "Privacy"
|
||||||
pageRef = "datenschutz"
|
pageRef = "datenschutz"
|
||||||
weight = 600
|
weight = 600
|
|
@ -13,6 +13,4 @@ menu:
|
||||||

|

|
||||||
|
|
||||||
**Jeden 1. und 3. Samstag im Monat ist ab 17 Uhr Bastelabend im Club.**
|
**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 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.
|
|
|
@ -13,6 +13,4 @@ menu:
|
||||||

|

|
||||||
|
|
||||||
**Jeden 2. und 4. Samstag im Monat ist ab 17 Uhr Spieleabend im Club.**
|
**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 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.
|
|
27
flake.lock
27
flake.lock
|
@ -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
|
|
||||||
}
|
|
41
flake.nix
41
flake.nix
|
@ -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);
|
|
||||||
};
|
|
||||||
}
|
|
Reference in a new issue