Compare commits
2 Commits
eedd8a4127
...
93556b3ace
Author | SHA1 | Date |
---|---|---|
Neale Pickett | 93556b3ace | |
Neale Pickett | 410a7822b2 |
|
@ -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.
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
<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}}
|
||||||
|
@ -16,4 +17,4 @@
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
17
run.sh
17
run.sh
|
@ -1,23 +1,26 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
case "$(hostname)" in
|
case "$(hostname)" in
|
||||||
WE47763)
|
oscar|sweetums)
|
||||||
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 --fqdn):1313/
|
baseURL=http://$(hostname):1313/
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
docker run \
|
src=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
podman run \
|
||||||
--rm -i \
|
--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) \
|
-u $(id -u):$(id -g) \
|
||||||
-p 1313:1313 \
|
-p 1313:1313 \
|
||||||
klakegg/hugo:ext server \
|
klakegg/hugo:ext server \
|
||||||
|
|
Loading…
Reference in New Issue