about summary refs log tree commit diff homepage
path: root/README.md
blob: 271387975043fb3f1d3e9dc02eb02965daf17a3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# My photo gallery

This is a static site (with immutable DOM as usual)
for displaying my photos.

## Hacking

Run `nix-shell` and open `http://localhost:28792`.
Changes to `*/index.xml` will be live reloaded thanks
to modern browsers' native support for XSLT.  The web feed
has to be manually regenerated with `make atom.xml` however.

## Deployment

```sh
rsync -avh --no-perms --delete\
  $(nix-build -E 'with import <nixpkgs> {}; callPackage ./. {}')/\
  loang:/mnt/nas/www/px.cnx.gdn/
```

Nix builds are reproducible which helps minimize the amount of file transfer.

## Copying

![CC BY-SA](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)

This site is licensed under a [Creative Commons Attribution-ShareAlike 4.0
International License](https://creativecommons.org/licenses/by-sa/4.0/).