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()
|
print()
|
||||||
end
|
end
|
||||||
print("<!DOCTYPE html>")
|
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>")
|
print("<body><h1>" .. title .. "</h1>")
|
||||||
if (body) then
|
if (body) then
|
||||||
print("<section>")
|
print("<section>")
|
||||||
|
|
|
@ -33,7 +33,7 @@ for cat, biggest in pairs(max_by_cat) do
|
||||||
points, dirname = line:match("^(%d+) (.*)")
|
points, dirname = line:match("^(%d+) (.*)")
|
||||||
points = tonumber(points)
|
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
|
if (points > biggest) then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue