Compare commits

..

No commits in common. "93556b3aceb8ad96f594447b7e726878c97571eb" and "eedd8a412715815fc55333a926e589478a5ec63e" have entirely different histories.

5 changed files with 8 additions and 20 deletions

View File

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

17
run.sh
View File

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