Convert tags to lowercase for simplicity

This commit is contained in:
Talia 2023-09-01 10:37:13 +02:00
parent 2942df6f9e
commit b79eb6c1a8
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -49,6 +49,10 @@ for file in restia.utils.files(params.input, "^./posts/.*%.md$") do
post.head.tags = string.split(post.head.tags, "[%a-]+")
end
for key, tag in ipairs(post.head.tags) do
post.head.tags[key] = string.lower(tag)
end
post.head.slug = post.head.title
:gsub(' ', '_')
:lower()