Tommy Harris
416bf482ac
Signed-off-by: Tommy Harris <tobraha@tilde.team> |
||
---|---|---|
.gitignore | ||
README.md | ||
config.toml | ||
deploy.sh |
README.md
tobraha-site
Deploy this super simple hugo site.
#!/bin/bash
site_name="tobraha-site"
deploy_dir="$PWD/$site_name/public"
# initialize new site
hugo new site $site_name
cp ./config.toml $site_name/
cd $site_name
# add hugo theme as git submodule
git init
git submodule add https://github.com/Yukuro/hugo-theme-shell.git themes/hugo-theme-shell
# build
hugo -D
# fix unicode characters
sed -i 's/└/\\u2514/g' "$deploy_dir/index.html"
sed -i 's/├/\\u251c/g' "$deploy_dir/index.html"
sed -i 's/─/\\u2500/g' "$deploy_dir/index.html"