From 669594bd7fe4bc9a630e90e1880d3511c13b208e Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 17 Jan 2025 16:40:51 +1000 Subject: Page history is now per site, the page name is added automatically. --- INSTALL.md | 5 ----- MeTaDaTa.md | 5 +++-- README | 2 +- TODO.md | 2 +- about/index.md | 1 - notYetAnotherWiki.lua | 2 +- testing/index.md | 1 - 7 files changed, 6 insertions(+), 12 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 6b19208..35137f8 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,8 +1,3 @@ ---- -pagetitle: "INSTALL" -pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/INSTALL.md ---- - notYetAnotherWiki uses [lcmark](https://github.com/jgm/lcmark) to parse [CommonMark](https://commonmark.org/) into HTML. You can probably install it using luarocks. lua-yaml is the YAML parsing library I test with. You also need luajit installed. diff --git a/MeTaDaTa.md b/MeTaDaTa.md index ab7b673..24796a8 100644 --- a/MeTaDaTa.md +++ b/MeTaDaTa.md @@ -1,4 +1,5 @@ --- -feedatom: https://sledjhamr.org/cgit/notYetAnotherWiki/atom -sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/ +sourcecode: https://sledjhamr.org/cgit/notYetAnotherWiki/ +pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log +feedatom: https://sledjhamr.org/cgit/notYetAnotherWiki/atom --- diff --git a/README b/README index 161a7f2..1f0f99d 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ --- pagetitle: "notYetAnotherWiki" -pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/index.md +pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log --- notYetAnotherWiki is not another wiki, at least not yet. It'll be much diff --git a/TODO.md b/TODO.md index 863a0a9..7e6d7fd 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,6 @@ --- pagetitle: "TODO" -pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/TODO.md +pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log --- ## Do these diff --git a/about/index.md b/about/index.md index ebe52a4..af5c62f 100644 --- a/about/index.md +++ b/about/index.md @@ -1,6 +1,5 @@ --- pagetitle: "notYetAnotherWiki is not another wiki, at least not yet. It'll be much more than that, eventually." -pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/About/index.md --- This is a new directory, an entire PR department can hang out here. diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index f78e986..576ffa3 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -270,7 +270,7 @@ for name, file in pairs(Files) do -- if '' == metadata.trail then metadata.trail = 'home   ' end -- Figure out this pages footer links. - if nil ~= metadata.pagehistory then metadata.history = '

Page history

' end + if nil ~= metadata.pagehistory then metadata.history = '

Page history

' end if nil ~= metadata.sourcecode then metadata.footer = 'source code     ' .. metadata.footer end if nil ~= metadata.feedatom then metadata.footer = 'atom feed     ' .. metadata.footer end if metadata.footer ~= globalData.footer then metadata.footer = 'Web site ' .. metadata.footer end diff --git a/testing/index.md b/testing/index.md index 910419e..c95cdac 100644 --- a/testing/index.md +++ b/testing/index.md @@ -1,6 +1,5 @@ --- pagetitle: "G'day world!" -pagehistory: https://sledjhamr.org/cgit/notYetAnotherWiki/log/testing/index.md --- I've been around since the early sixties, but no one ever noticed.  You -- cgit v1.1