diff options
author | sanine <sanine.not@pm.me> | 2024-10-07 16:32:24 +0000 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2024-10-07 16:32:24 +0000 |
commit | 3f768b11c451fb922c7f67dba42aa09ea287da94 (patch) | |
tree | e81b5ef8c8a93e6851417b69a9787b41c67e102a /layouts | |
parent | 925b66a3a20fd28d421b7867e9fb7f5a8e76bb7f (diff) |
update layouts
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/base.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/base.lua b/layouts/base.lua index f4912c7..fec0bf9 100644 --- a/layouts/base.lua +++ b/layouts/base.lua @@ -22,7 +22,7 @@ return function(html, page_tbl) function(s) return string.format( '<h1>%s</h1>%s</br>', - s, string.rep('=', string.len(string.gsub(s, '<.*>', ''))) + s, string.rep('=', math.max(string.len(s), 40)) ) end ) |