summaryrefslogtreecommitdiff
path: root/layouts/base.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-10-07 11:28:32 -0500
committersanine <sanine.not@pm.me>2024-10-07 11:28:32 -0500
commit925b66a3a20fd28d421b7867e9fb7f5a8e76bb7f (patch)
treedb860047711e64aad80fea6462579476aeb80196 /layouts/base.lua
parent27f3d5cc0b87e25f700857622227d3918b8bc2c2 (diff)
fix link headings
Diffstat (limited to 'layouts/base.lua')
-rw-r--r--layouts/base.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/base.lua b/layouts/base.lua
index 1c585d7..f4912c7 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(s))
+ s, string.rep('=', string.len(string.gsub(s, '<.*>', '')))
)
end
)