website/README.md

38 lines
1.0 KiB
Markdown
Raw Normal View History

2020-02-20 01:16:28 +00:00
# Simple Systems Website
Built using [Hugo](https://gohugo.io/getting-started/installing/)
2020-02-20 01:16:28 +00:00
## Local development
```
hugo server
2020-02-20 01:16:28 +00:00
```
Development can also be run using Docker:
```shell script
docker build --no-cache -f Dockerfile.dev -t website-fe . && \
docker run -it -p 1313:1313 --mount source=$(pwd),target=/src,type=bind --rm website-fe
```
## Production
To build the production site, run the following command:
2020-02-20 01:16:28 +00:00
```
hugo --minify
2020-02-20 01:16:28 +00:00
```
To build the Dockerfile, run this command:
```shell script
docker build --no-cache -f Dockerfile.prod -t docker.simplesystems.tech/simplesystems/website:latest . && docker push docker.simplesystems.tech/simplesystems/website
```
The resources will be stored in the `./public` directory.
2020-02-20 01:16:28 +00:00
## Managing Job Posts
* To add a job post, create the markdown file in `content/jobs`.
* To remove a job post, remove its markdown file from `content/jobs`.
2020-02-20 01:16:28 +00:00
## Managing Blog Posts
* To add a blog post, create the markdown file in `content/blog`.
* To remove a blog post, remove its markdown file from `content/blog`.