aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-14 12:17:54 +1000
committerdvs12025-01-14 12:17:54 +1000
commit1389b1d9ed23b52c33ba1ce7afca29afb5d782ce (patch)
treea91b23728b557c417b03c60cf4031892aed5c5c6
parentFix up whichPage() so they ALL have .HTML. (diff)
downloadnotYetAnotherWiki-1389b1d9ed23b52c33ba1ce7afca29afb5d782ce.zip
notYetAnotherWiki-1389b1d9ed23b52c33ba1ce7afca29afb5d782ce.tar.gz
notYetAnotherWiki-1389b1d9ed23b52c33ba1ce7afca29afb5d782ce.tar.bz2
notYetAnotherWiki-1389b1d9ed23b52c33ba1ce7afca29afb5d782ce.tar.xz
Override menu URL with metadata.
-rwxr-xr-xnotYetAnotherWiki.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index 0329852..b927310 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -239,7 +239,12 @@ for name, file in pairs(Files) do
239 if name == f then 239 if name == f then
240 metadata.menu = metadata.menu .. '<p>' .. f .. '</p>' 240 metadata.menu = metadata.menu .. '<p>' .. f .. '</p>'
241 else 241 else
242 metadata.menu = metadata.menu .. '<p><a href="' .. f .. '.HTML">' .. f .. '</a></p>' 242 local url = metadata.URL
243 if nil ~= url then
244 metadata.menu = metadata.menu .. '<p><a href="' .. url .. '.HTML">' .. f .. '</a></p>'
245 else
246 metadata.menu = metadata.menu .. '<p><a href="' .. f .. '.HTML">' .. f .. '</a></p>'
247 end
243 end 248 end
244 end 249 end
245 250