kota's memex

deploy

By default hugo does not minify the output or remove old files from the public directory. The following options fix that.

hugo --cleanDestinationDir --minify

Next just rsync the public directory to your webserver.

rsync -avP public/ user@server.org:/var/www/html/