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
identifier = "podcast"
url = "/podcast/"
# [[menu.main]]
# name = "Readings"
# pre = "<i class='fa fa-book fa-fw'></i>"
# weight = 4
# identifier = "reading"
# url = "/reading/"
[[menu.main]]
name = "Gaming"
pre = "<i class='fa fa-dice fa-fw'></i>"
weight = 4
identifier = "gaming"
url = "/gaming/"
# [[menu.main]]
# name = "Resources"
# 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
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."