mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
39 lines
1.3 KiB
Markdown
39 lines
1.3 KiB
Markdown
# Angestöpselt Homepage
|
||
|
||
This repository contains the next version of Angestöpselt's homepage, intended
|
||
to be hosted at <angestoepselt.de>. It is built with the
|
||
[Eleventy](https://www.11ty.dev/) static site generator, using SCSS for
|
||
stylesheets.
|
||
|
||
## Local development environment
|
||
|
||
To build the site locally, make sure you have Node installed (currently tested
|
||
with version 14). Then run:
|
||
|
||
```shell
|
||
npm install
|
||
npm run build:styles
|
||
npm run dev:site
|
||
```
|
||
|
||
Go to <https://localhost:8080/>, which will update live when content changes.
|
||
If you make style changes, make sure to recompile the CSS files with the second
|
||
command. Alternatively, run `npm run dev:styles` in a second terminal to watch
|
||
for changes.
|
||
|
||
### Nix environment
|
||
|
||
This repository also contains a [Nix flake](https://nixos.wiki/wiki/Flakes)
|
||
which contains the full development environment. `nix develop` will open a
|
||
shell with all required tools – you don't need to run `npm install` anymore.
|
||
|
||
When Node dependencies are updated (this will change `package.json`), make sure
|
||
to run `./_nix/update.sh` to update the npm lockfile and the Nix environment.
|
||
|
||
The flake also contains a second package for building the production output:
|
||
|
||
```shell
|
||
nix build .#angestoepselt-site
|
||
```
|
||
|
||
The final derivation contains a `www` folder that can be served.
|