My site
Go to file
Tommy Harris 03451f6e21
Initial commit
Signed-off-by: Tommy Harris <tobraha@tilde.team>
2021-07-21 14:18:21 -06:00
.gitignore Initial commit 2021-07-21 14:18:21 -06:00
README.md Initial commit 2021-07-21 14:18:21 -06:00
config.toml Initial commit 2021-07-21 14:18:21 -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"