From b9f6c415040896ea206babce3ef9604ab6a0ed53 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 27 Dec 2024 12:29:20 +1000 Subject: Hopefully fixed up the trail now. --- TODO.md | 2 +- notYetAnotherWiki.lua | 8 ++++---- 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/ --- ## Do these -Trail and footer is still wrong. +Footer is still wrong. Clean up the favicon and logo stuff. 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 local num = v.depth local trail = 'home   ' local p = v.parent - for i = 1, num - 1 do + for i = 1, num do trail = trail .. '' .. v.bits[i] .. '   ' - p = w[parent] - if nil == p then break end +-- p = w[parent] +-- if nil == p then break end end - trail = trail .. v.bits[#(v.bits)] + trail = trail .. w.name metadata.trail = trail metadata.body = lcmark.apply_template(bod, metadata) -- cgit v1.1