My site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tommy Harris b0f9f57b7a
Change hostname to tilde
4 days ago
.gitignore Fix gitignore path 4 days ago
README.md Initial commit 4 days ago
config.toml Change hostname to tilde 4 days ago
deploy.sh Initial commit 4 days ago

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"