aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12024-12-27 12:29:20 +1000
committerdvs12024-12-27 12:29:20 +1000
commitb9f6c415040896ea206babce3ef9604ab6a0ed53 (patch)
tree5ddc05a9fe05b7329f25324c240503bd0b6df6ed
parentTODO++ (diff)
downloadnotYetAnotherWiki-b9f6c415040896ea206babce3ef9604ab6a0ed53.zip
notYetAnotherWiki-b9f6c415040896ea206babce3ef9604ab6a0ed53.tar.gz
notYetAnotherWiki-b9f6c415040896ea206babce3ef9604ab6a0ed53.tar.bz2
notYetAnotherWiki-b9f6c415040896ea206babce3ef9604ab6a0ed53.tar.xz
Hopefully fixed up the trail now.
-rw-r--r--TODO.md2
-rwxr-xr-xnotYetAnotherWiki.lua8
2 files changed, 5 insertions, 5 deletions
diff --git a/TODO.md b/TODO.md
index 83eee69..ef622e4 100644
--- a/TODO.md
+++ b/TODO.md
@@ -7,7 +7,7 @@ sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/
7--- 7---
8## Do these 8## Do these
9 9
10Trail and footer is still wrong. 10Footer is still wrong.
11 11
12Clean up the favicon and logo stuff. 12Clean up the favicon and logo stuff.
13 Have one in a root directory that the pages in sub directories point to, instead of the current symlinks. 13 Have one in a root directory that the pages in sub directories point to, instead of the current symlinks.
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index f3956f8..3146341 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -120,12 +120,12 @@ for k, v in pairs(sites) do
120 local num = v.depth 120 local num = v.depth
121 local trail = '<a href="' .. string.rep('../', num) .. '">home</a> &nbsp; ' 121 local trail = '<a href="' .. string.rep('../', num) .. '">home</a> &nbsp; '
122 local p = v.parent 122 local p = v.parent
123 for i = 1, num - 1 do 123 for i = 1, num do
124 trail = trail .. '<a href="' .. string.rep('../', num - i) .. '">' .. v.bits[i] .. '</a> &nbsp; ' 124 trail = trail .. '<a href="' .. string.rep('../', num - i) .. '">' .. v.bits[i] .. '</a> &nbsp; '
125 p = w[parent] 125-- p = w[parent]
126 if nil == p then break end 126-- if nil == p then break end
127 end 127 end
128 trail = trail .. v.bits[#(v.bits)] 128 trail = trail .. w.name
129 metadata.trail = trail 129 metadata.trail = trail
130 130
131 metadata.body = lcmark.apply_template(bod, metadata) 131 metadata.body = lcmark.apply_template(bod, metadata)