commit 03451f6e215dc96e8b677e6af031b2fc770da07d Author: Tommy Harris Date: Wed Jul 21 14:18:21 2021 -0600 Initial commit Signed-off-by: Tommy Harris diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5706f5c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +./tobraha-site diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f166fb --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# tobraha-site + +Deploy this super simple hugo site. + +```bash +#!/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" +``` diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..7fbadfa --- /dev/null +++ b/config.toml @@ -0,0 +1,47 @@ +baseURL = "https://tilde.team/~tobraha" +languageCode = "en-us" +title = "Tommy's Site" +theme = "hugo-theme-shell" + +[Params] + [Params.Terminal] + # Note: color schema + # Note: You can choose between + # Note: ["monokai", "powershell", "gruvbox_light", "gruvbox_dark", "solarized_light", "solarized_dark", "ubuntu", "retro"] + schema = "gruvbox_dark" + + # Note: in terminal + # [userName]@[pcName]:~/$ cd [workDir] + # [userName]@[pcName]:~/[workDir]$ cat [profile] + # + # [description] + # + # Note: if you set Params.Tree > user = true + # [userName]@[pcName]:~/[workDir]$ tree ./[folderName]/ + # ./[folderName]/ + # ... + # Note: result of the tree command + userName = "tobraha" + pcName = "master-sword" + workDir = "my_stuff" + profile = "profile" + + # Note: speed at which text is displayed on the terminal + terminalDelay = 10 + + # Note: speed at which text is displayed on the activity pages + activityDelay = 5 + + description = """ + Hi! I'm Tommy. + I live in Albuquerque, New Mexico and I like computer stuff. + + """ + [Params.Tree] + use = true + folderName = "things" + # Note: ["ACTIVITY", "URL or PATH TO YOUR MARKDOWN FILE"] + files = [ + ["Github", "https://github.com/tobraha/"], + ["Twitter", "https://twitter.com/tobraha"] + ] \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..98fe56f --- /dev/null +++ b/deploy.sh @@ -0,0 +1,22 @@ +#!/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"