summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-10-11 19:07:14 +0000
committersanine <sanine.not@pm.me>2024-10-11 19:07:14 +0000
commitd416e3c43418f9ac4b033fb219bec7c383ee39bf (patch)
tree811674b8907327237b3d03d045ad5367594ed956 /layouts
parent3f768b11c451fb922c7f67dba42aa09ea287da94 (diff)
update title styles and add cyberia logoHEADmain
Diffstat (limited to 'layouts')
-rw-r--r--layouts/base.lua15
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">