Fixed some relative paths. Added some doc love to README

This commit is contained in:
Jack Miner 2016-02-18 01:20:28 -07:00
parent 703a781252
commit b9f7b9c77e
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ function moth.page(title, body)
print()
end
print("<!DOCTYPE html>")
print("<html><head><title>" .. title .. "</title><link rel=\"stylesheet\" href=\"../style.css\"><meta name=\"viewport\" content=\"width=device-width\"></head>")
print("<html><head><title>" .. title .. "</title><link rel=\"stylesheet\" href=\"style.css\"><meta name=\"viewport\" content=\"width=device-width\"></head>")
print("<body><h1>" .. title .. "</h1>")
if (body) then
print("<section>")

View File

@ -33,7 +33,7 @@ for cat, biggest in pairs(max_by_cat) do
points, dirname = line:match("^(%d+) (.*)")
points = tonumber(points)
body = body .. "<a href=\"../" .. cat .. "/" .. dirname .. "/index.html\">" .. points .. "</a> "
body = body .. "<a href=\"" .. cat .. "/" .. dirname .. "/index.html\">" .. points .. "</a> "
if (points > biggest) then
break
end