Compare commits

..

2 Commits

Author SHA1 Message Date
Neale Pickett 93556b3ace Fine, hugo wins
Homepage / publish (push) Successful in 23s Details
2024-02-05 19:44:03 -07:00
Neale Pickett 410a7822b2 Make it work with podman 2024-02-05 18:47:15 -07:00
5 changed files with 20 additions and 8 deletions

View File

@ -0,0 +1,8 @@
Hugo has some impossible (for me) to understand "leaf" vs "branch" thing
that is preventing this section from being enumerated
by `.Pages`
in the list layout.
So there's a lot of content here
that is not getting enumerated
until I figure that out.

View File

@ -3,6 +3,7 @@
<ul>
{{range .Pages}}
{{.}}
<li class="{{if .IsNode}}branch{{end}} {{if .Draft}}draft{{end}}">
<a href="{{.Permalink}}">
{{.Title}}
@ -16,4 +17,4 @@
</li>
{{end}}
</ul>
{{end}}
{{end}}

17
run.sh
View File

@ -1,23 +1,26 @@
#! /bin/sh
case "$(hostname)" in
WE47763)
baseURL=http://localhost:1313/
;;
sweetums)
oscar|sweetums)
baseURL=http://sweetums.lan:1313/
;;
penguin)
baseURL=http://penguin.linux.test:1313/
;;
*)
baseURL=http://$(hostname --fqdn):1313/
baseURL=http://$(hostname):1313/
;;
esac
docker run \
src=$(realpath $(dirname $0))
podman run \
--rm -i \
-v $(realpath $(dirname $0)):/src \
-v $src/content:/src/content:ro \
-v $src/layouts:/src/layouts:ro \
-v $src/config:/src/config:ro \
-v $src/static:/src/static:ro \
-v $src/.git:/src/.git:ro \
-u $(id -u):$(id -g) \
-p 1313:1313 \
klakegg/hugo:ext server \