add gaming page, update hugo server command

This commit is contained in:
Greg Gauthier 2024-09-08 12:54:48 +01:00
parent 281bde421c
commit 6265e0f8aa
3 changed files with 17 additions and 9 deletions

View File

@ -76,12 +76,12 @@ enableGitInfo = true
weight = 3 weight = 3
identifier = "podcast" identifier = "podcast"
url = "/podcast/" url = "/podcast/"
# [[menu.main]] [[menu.main]]
# name = "Readings" name = "Gaming"
# pre = "<i class='fa fa-book fa-fw'></i>" pre = "<i class='fa fa-dice fa-fw'></i>"
# weight = 4 weight = 4
# identifier = "reading" identifier = "gaming"
# url = "/reading/" url = "/gaming/"
# [[menu.main]] # [[menu.main]]
# name = "Resources" # name = "Resources"
# pre = "<i class='fa fa-screwdriver fa-fw'></i>" # pre = "<i class='fa fa-screwdriver fa-fw'></i>"

8
content/gaming.md Normal file
View File

@ -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" >}}

View File

@ -2,15 +2,15 @@
export LOG=./logs/hugo-server.log export LOG=./logs/hugo-server.log
if ! [ -z "$1" ]; then if [ -n "$1" ]; then
if [[ "$1" == "start" ]]; then if [[ "$1" == "start" ]]; then
hugo server -D --disableFastRender --enableGitInfo -v --debug > $LOG 2>&1 & hugo server -D --disableFastRender --enableGitInfo -v --debug > $LOG 2>&1 &
echo "Server started on $(pidof hugo)" echo "Server started on $(pidof hugo)"
elif [[ "$1" == "stop" ]]; then elif [[ "$1" == "stop" ]]; then
kill -9 $(pidof hugo) kill -9 "$(pidof hugo)"
elif [[ "$1" == "status" ]]; then elif [[ "$1" == "status" ]]; then
pid=$(pidof hugo) pid=$(pidof hugo)
if ! [ -z "$pid" ]; then if [ -n "$pid" ]; then
echo "Hugo Server Active. PID: ${pid}" echo "Hugo Server Active. PID: ${pid}"
else else
echo "Hugo Server Is Inactive." echo "Hugo Server Is Inactive."