Hugo for my main website. https://vgai.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Julian e9ee18ff2b
adjust handling of mentions
1 month ago
mentions update mentions csv 1 month ago
output clean destination dir before building 2 months ago
src adjust handling of mentions 1 month ago
.gitignore add webmentiond 2 months ago
.gitmodules remove submodules not needed any more 2 months ago
LICENSE.txt initial commit after creating new site 2 months ago
README.adoc add docker-compose service for production 2 months ago
docker-compose.yml replace webmentiond with nginx logging 2 months ago
push_mentions.sh update push_mentions.sh 1 month ago

README.adoc

Trying out Hugo, to evaluate how usable it is for my website.

License

Copyright © 2020, Julian Leyh <julian@vgai.de>

Licensed under the CC SA 4.0, see LICENSE.txt.

Usage of Docker for development

I use docker-compose for running Hugo locally and in production.

You should set the environment variable UID_GID before running the commands, like this:

export UID_GID="$(id -u):$(id -g)"

The productive nginx container is configured for use with the traefik reverse proxy. Please adjust the configuration for your needs. Also, the configuration requires an external docker network named traefik_proxy.

Build

To build using Docker, run following command:

docker-compose run --rm build

You can add parameters, like this:

docker-compose run --rm build new posts/foobar.adoc

Development Server

To run the integrated server during development, run following command:

docker-compose up server

Simply press Ctrl+C to stop it again.

Nginx Server

To run the Nginx server, adjust the configuration for traefik and run following command:

docker-compose up -d nginx