From 6265e0f8aa0a86ee9b28c141ae55ba238f0b82a2 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 8 Sep 2024 12:54:48 +0100 Subject: [PATCH] add gaming page, update hugo server command --- config.toml | 12 ++++++------ content/gaming.md | 8 ++++++++ hugo-server | 6 +++--- 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 content/gaming.md diff --git a/config.toml b/config.toml index 596afff..d66fa68 100644 --- a/config.toml +++ b/config.toml @@ -76,12 +76,12 @@ enableGitInfo = true weight = 3 identifier = "podcast" url = "/podcast/" -# [[menu.main]] -# name = "Readings" -# pre = "" -# weight = 4 -# identifier = "reading" -# url = "/reading/" + [[menu.main]] + name = "Gaming" + pre = "" + weight = 4 + identifier = "gaming" + url = "/gaming/" # [[menu.main]] # name = "Resources" # pre = "" diff --git a/content/gaming.md b/content/gaming.md new file mode 100644 index 0000000..77846c9 --- /dev/null +++ b/content/gaming.md @@ -0,0 +1,8 @@ +--- +title: Gaming Stuff +description: Useful Tools For Table Top Gaming +--- + +## Gamma World + +* {{< abstab title="Gamma World Gaming Tools" url="https://gmgauthier.com/gw" >}} diff --git a/hugo-server b/hugo-server index b0cc1a7..fabc4d2 100755 --- a/hugo-server +++ b/hugo-server @@ -2,15 +2,15 @@ export LOG=./logs/hugo-server.log -if ! [ -z "$1" ]; then +if [ -n "$1" ]; then if [[ "$1" == "start" ]]; then hugo server -D --disableFastRender --enableGitInfo -v --debug > $LOG 2>&1 & echo "Server started on $(pidof hugo)" elif [[ "$1" == "stop" ]]; then - kill -9 $(pidof hugo) + kill -9 "$(pidof hugo)" elif [[ "$1" == "status" ]]; then pid=$(pidof hugo) - if ! [ -z "$pid" ]; then + if [ -n "$pid" ]; then echo "Hugo Server Active. PID: ${pid}" else echo "Hugo Server Is Inactive."