diff options
Diffstat (limited to 'h.lua')
-rw-r--r-- | h.lua | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -89,7 +89,7 @@ function qw(s) for a in s:gmatch("%w+") do table.insert(t,a) end return t end -local tnames = qw"h1 h2 p b ul ol li dl dt dd div section header figure figcaption img title nav" +local tnames = qw"h1 h2 h3 p b i ul ol li dl dt dd div section header figure figcaption img title nav" for _,n in ipairs(tnames) do _G[n] = tagfn(n) end @@ -103,8 +103,11 @@ function readf(fname) end function safereadf(fname) return safe(readf(fname)) end -function mkhead(t) +function mkhead(t,nositename) -- includes css and stuff, and title element + if not nositename then + t = t .. ' - uq323.website' + end return { safereadf "head.html", title(t), @@ -112,11 +115,17 @@ function mkhead(t) end function mktopbox(imgsrc,name,rest) - return header { + return header({class="big-header"}, { img({id='me',src=imgsrc},''), h1(name), rest - } + }) +end + +function mksmalltopbox(words) + return header ({class="small-header"}, { + h1(words) + }) end function bcrumb(items) |