diff options
-rw-r--r-- | TODO.md | 2 | ||||
-rwxr-xr-x | notYetAnotherWiki.lua | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -7,7 +7,7 @@ sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/ | |||
7 | --- | 7 | --- |
8 | ## Do these | 8 | ## Do these |
9 | 9 | ||
10 | Trail and footer is still wrong. | 10 | Footer is still wrong. |
11 | 11 | ||
12 | Clean up the favicon and logo stuff. | 12 | Clean 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> ' | 121 | local trail = '<a href="' .. string.rep('../', num) .. '">home</a> ' |
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> ' | 124 | trail = trail .. '<a href="' .. string.rep('../', num - i) .. '">' .. v.bits[i] .. '</a> ' |
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) |