diff --git a/src/page/dir.html b/src/page/dir.html
index e97196f..beecce1 100644
--- a/src/page/dir.html
+++ b/src/page/dir.html
@@ -15,6 +15,9 @@ ${header}
]])
end
print([[
+
+
+
diff --git a/src/page/header.html b/src/page/header.html
index 1ac85ab..b334a34 100644
--- a/src/page/header.html
+++ b/src/page/header.html
@@ -18,6 +18,19 @@
print('')
end}
+
${opts.plugin_global_body_html}
@@ -44,7 +57,7 @@
{if true then
print( app.opts.plugin_global_topmenu_html:gsub("\n"," ") )
end}
- {if template == "page/dir.html" then
+ {if template == "page/dir.html" and not defined(item) then
local url = urlpath
if not urlpath:match(app.opts.plugin_diskscan_dirname) then
-- janusweb workaround (it does not support '/' url somehow)
@@ -56,27 +69,11 @@
print([[ ]])
end
end}
- {if template == "page/index.html" then
- local sharedata = {
- title = (item and item.title or opts.plugin_global_title)
- }
+ {if template == "page/index.html" or defined(item) then
print([[
-
+
-
]])
end}