My site
Go to file
Tommy Harris 416bf482ac
Merge branch 'master' of tildegit.org:tobraha/tobraha-site
Signed-off-by: Tommy Harris <tobraha@tilde.team>
2021-08-25 00:06:47 -06:00
.gitignore Fix gitignore path 2021-07-21 14:19:19 -06:00
README.md Initial commit 2021-07-21 14:18:21 -06:00
config.toml Add photo gallery; formatting updates 2021-08-25 00:03:37 -06:00
deploy.sh Initial commit 2021-07-21 14:18:21 -06:00

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"