summaryrefslogtreecommitdiff
path: root/README.md
blob: 72354b675f61490901752dc04bf663d290b0b87d (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
yams.media
==========

This are the source files for https://yams.media.

## Dependencies

- hugo.
- cwebp (development only).

## To run

### For development

``` sh
git clone git@gitlab.com:rogs/yams.media.git
cd yams.media
ln -s $(pwd)/pre-commit $(pwd)/.git/hooks # for pre-commit hooks
hugo serve
```
And open http://localhost:1313 to see the site.

#### About the pre-commit hooks and MacOS

If you are in MacOS you might have problems because of the `sed` command. If you are having problems, just change `sed -i` for `sed -i ''` and you'll be good to go! Please do not commit this change into the repository.

### For production

``` sh
git clone git@gitlab.com:rogs/yams.media.git
cd yams.media
hugo
```

Your files will be on the ``./public` folder, ready to upload to a server.