diff options
Diffstat (limited to 'notYetAnotherWiki.lua')
-rwxr-xr-x | notYetAnotherWiki.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 37bbd94..2faf285 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua | |||
@@ -4,7 +4,11 @@ local lcmark = require("lcmark") | |||
4 | 4 | ||
5 | 5 | ||
6 | 6 | ||
7 | local globalData = {favicon = 'nYAW_icon.png', logo = 'nYAW.png', version = '-0.1', header = '', footer = '', menu = '', ['_'] = ' ', ['dlr'] = '$', ['karenpurple'] = '#8800ff'} | 7 | local globalData = { |
8 | ['_'] = ' ', ['dlr'] = '$', ['karenpurple'] = '#8800ff', | ||
9 | favicon = 'nYAW_icon.png', logo = 'nYAW.png', header = '', menu = '', | ||
10 | history = '', footer = 'Powered by <a href="https://sledjhamr.org/cgit/notYetAnotherWiki/about/">notYetAnotherWiki</a> Version -0.1. ', | ||
11 | } | ||
8 | local sites = {} | 12 | local sites = {} |
9 | 13 | ||
10 | 14 | ||
@@ -170,6 +174,11 @@ for k, v in pairs(sites) do | |||
170 | trail = trail .. w.name | 174 | trail = trail .. w.name |
171 | metadata.trail = trail | 175 | metadata.trail = trail |
172 | 176 | ||
177 | if nil ~= metadata.pagehistory then metadata.history = '<p>Page <a href="' .. metadata.pagehistory .. '">history</a></p>' end | ||
178 | if nil ~= metadata.sourcecode then metadata.footer = '<a href="' .. metadata.sourcecode .. '">source code</a> ' .. metadata.footer end | ||
179 | if nil ~= metadata.feedatom then metadata.footer = '<a href="' .. metadata.feedatom .. '">atom feed</a> ' .. metadata.footer end | ||
180 | if metadata.footer ~= globalData.footer then metadata.footer = 'Web site ' .. metadata.footer end | ||
181 | metadata.footer = '<p>' .. metadata.footer .. '</p>' | ||
173 | metadata.body = lcmark.apply_template(bod, metadata) | 182 | metadata.body = lcmark.apply_template(bod, metadata) |
174 | 183 | ||
175 | local tm = '' | 184 | local tm = '' |