From 7d6c4cad11a9a320d130f31fb3637e5de95bb2f6 Mon Sep 17 00:00:00 2001 From: Ubergeek Date: Fri, 28 Jun 2019 22:32:40 +0000 Subject: [PATCH] Made wiki.php portable, and added footer and header files --- articles/main.md | 13 ++++++------- articles/sandbox.md | 9 +++++++++ includes/footer.md | 2 ++ includes/header.md | 1 + wiki.php | 6 ++++-- 5 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 articles/sandbox.md create mode 100644 includes/footer.md create mode 100644 includes/header.md diff --git a/articles/main.md b/articles/main.md index a25bc31..2852d56 100644 --- a/articles/main.md +++ b/articles/main.md @@ -1,9 +1,8 @@ -

Official Thunix Wiki.

- -#### Welcome to the Offical Thunix Wiki! +--- +# Main Page -      test +* [SSH and keys](ssh) +* [Email](email) -test -test link -[tableofcontents](tableofcontents "TOC") +* [Sandbox Page](sandbox) +--- diff --git a/articles/sandbox.md b/articles/sandbox.md new file mode 100644 index 0000000..a25bc31 --- /dev/null +++ b/articles/sandbox.md @@ -0,0 +1,9 @@ +

Official Thunix Wiki.

+ +#### Welcome to the Offical Thunix Wiki! + +      test + +test +test link +[tableofcontents](tableofcontents "TOC") diff --git a/includes/footer.md b/includes/footer.md new file mode 100644 index 0000000..45a408c --- /dev/null +++ b/includes/footer.md @@ -0,0 +1,2 @@ +--- +All content in this wiki is under the CC-By-SA 4.0 or later license. diff --git a/includes/header.md b/includes/header.md new file mode 100644 index 0000000..ae4e277 --- /dev/null +++ b/includes/header.md @@ -0,0 +1 @@ +# Thunix Wiki diff --git a/wiki.php b/wiki.php index ebeebde..713a552 100644 --- a/wiki.php +++ b/wiki.php @@ -9,10 +9,12 @@ if ( $page == "") { print " Thunix Wiki - $page + "; - -echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") ); +echo ( shell_exec("/usr/bin/pandoc includes/header.md") ); +echo ( shell_exec("/usr/bin/pandoc articles/$page.md") ); +echo ( shell_exec("/usr/bin/pandoc includes/footer.md") ); print " ";