Posts
read more
Setting up Hugo
Setting up Hugo
Hugo generate static web files. This is how this blog was compiled. Hugo can be installed locally. The generated contents are synchronized to some remote servers.
Setting up the remote
A dedicated folder on my home server was setup to host the compiled hugo files. The details are not shown here.
Setting up the local
sudo dnf install hugo
# in the path where you want to save the blogs
hugo new site blog
cd blog
git init
git add hugo.toml
hugo new content content/posts/hugo.md # this post
touch deploy.sh
git add deploy.sh
- deploy.sh
#!/usr/bin/env bash
hugo && rsync -avz --delete public/ remote:/var/www/blog/
- to deploy
./deploy.sh
$e^{i\pi}+1=0$