diff options
| author | dvs1 | 2024-12-28 16:55:42 +1000 |
|---|---|---|
| committer | dvs1 | 2024-12-28 16:55:42 +1000 |
| commit | 7a85cb1010051d5b5460e511ce010e23e644cb04 (patch) | |
| tree | 91c3999bd04eac38e7819e5945d5f0e66dba53e9 /notYetAnotherWiki.lua | |
| parent | OOPS-- (diff) | |
| download | notYetAnotherWiki-7a85cb1010051d5b5460e511ce010e23e644cb04.zip notYetAnotherWiki-7a85cb1010051d5b5460e511ce010e23e644cb04.tar.gz notYetAnotherWiki-7a85cb1010051d5b5460e511ce010e23e644cb04.tar.bz2 notYetAnotherWiki-7a85cb1010051d5b5460e511ce010e23e644cb04.tar.xz | |
Mostly fix up the footer.
Still could use an " and " between "atom feed" and "source code" if both
are there.
Diffstat (limited to '')
| -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 = '' |
