Compare commits
2 Commits
eedd8a4127
...
93556b3ace
Author | SHA1 | Date |
---|---|---|
|
93556b3ace | |
|
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>
|
||||
{{range .Pages}}
|
||||
{{.}}
|
||||
<li class="{{if .IsNode}}branch{{end}} {{if .Draft}}draft{{end}}">
|
||||
<a href="{{.Permalink}}">
|
||||
{{.Title}}
|
||||
|
|
17
run.sh
17
run.sh
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue