aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: d6fabde972189012a5a99a57d0974bc56274b23a (plain)
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
29
30
31
32
33
34
35
36
37
# www.rgdd.se

This website is built using [Hugo][] and a [fork][] of the [researcher][] theme.

[Hugo]: http://localhost:1313/
[fork]: https://git.rgdd.se/www-theme
[researcher]: https://github.com/ojroques/hugo-researcher

## Getting started

On a Debian system:

    apt install hugo
    git submodule update --init --recursive
    hugo serve

Browse http://localhost:1313 for a preview of the site.

## Deploy

    hugo
    rsync -avz --delete --exclude /silent-ct/allowlist public/ www.rgdd.se:/var/www/rgdd.se/

Note: old files will be deleted, use with caution.

## Upgrade theme

If the remote submodule contains updates, run:

    (cd themes/www-theme && git checkout main && git pull origin main)
    git add themes/www-theme

## Sync theme

If the local submodule is behind, run:

    git submodule update