Edit Hugo Faster
For fast hugo, I defined some aliases alias blog_deploy="sh ~/Dropbox/xingwenju.com/hugo/deploy.sh" alias blog_new="cd ~/Dropbox/xingwenju.com/hugo && hugo new $1" alias blog_gen="cd ~/Dropbox/xingwenju.com/hugo && hugo" alias blog_serve="cd ~/Dropbox/xingwenju.com/hugo && hugo server –disableFastRender"
The Deploy.sh is like this. #!/bin/bash
echo -e "\033[0;32mDeploying updates to GitHub…\033[0m"
echo -e "~/Dropbox/xingwenju.com/hugo/"
cd ~/Dropbox/xingwenju.com/hugo
hugo # if using a theme, replace by `hugo -t <yourtheme>`
cd public
git add -A
msg="rebuilding site `date`" if [ $# -eq 1 ] then msg="$1" fi git commit -m "$msg"