diff options
Diffstat (limited to 'layouts/base.lua')
-rw-r--r-- | layouts/base.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/layouts/base.lua b/layouts/base.lua index fec0bf9..35af0d0 100644 --- a/layouts/base.lua +++ b/layouts/base.lua @@ -21,8 +21,8 @@ return function(html, page_tbl) '<h1>(.-)</h1>', function(s) return string.format( - '<h1>%s</h1>%s</br>', - s, string.rep('=', math.max(string.len(s), 40)) + '<h1>%s</h1><div class="underline">%s</div></br>', + s, string.rep('=', 70) ) end ) @@ -32,8 +32,8 @@ return function(html, page_tbl) '<h2>(.-)</h2>', function(s) return string.format( - '<h2>%s</h2>%s</br>', - s, string.rep('-', string.len(s)) + '<h2>%s</h2><div class="underline">%s</div></br>', + s, string.rep('-', 70) ) end ) @@ -46,6 +46,13 @@ return function(html, page_tbl) <link rel="icon" type="image/svg+xml" href="/favicon.svg"> <title>%s</title> <link rel="stylesheet" href="/style.css"> + <style> + .underline { + overflow: hidden; + white-space: nowrap; + max-width: 92vw; + } + </style> </html> <body> <div id="content"> |