summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/base.lua2
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
)