diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-02-04 16:15:22 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-02-04 16:15:22 +0100 |
commit | 32eb66bb140e93e1fa5a156f2da81634c8c9884d (patch) | |
tree | 78a215fb0fe9a4457813b6a9f529fbcdfdc286e0 | |
parent | 35f8b20530328a42455af9ba3a249e09b082dc4c (diff) |
load markdown from correct location
this website is now working for the first time
-rw-r--r-- | common/file.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/file.lua b/common/file.lua index 90c8ea2..5b5ebed 100644 --- a/common/file.lua +++ b/common/file.lua @@ -1,5 +1,7 @@ file = {} +local mdroot = "/usr/local/apache2/htdocs" + function string.split(self, sep) if not sep then sep = "%s" end @@ -36,7 +38,7 @@ function file.write(path, contents) end function file.process(uri, templates, params) - path = "/var/www/md" .. uri + path = mdroot .. uri local contents = file.read(path) if not contents then |