mirror of https://github.com/dirtbags/moth.git
Fixed some relative paths. Added some doc love to README
This commit is contained in:
parent
703a781252
commit
b9f7b9c77e
|
@ -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>")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue