Allow hyphens in post tags

This commit is contained in:
Talia 2023-08-30 13:59:40 +02:00
parent ddb840b5e4
commit 908b34101c

View file

@ -46,7 +46,7 @@ for file in restia.utils.files(params.input, "^./posts/.*%.md$") do
post.head.timestamp = parsedate(post.head.date)
if "string" == type(post.head.tags) then
post.head.tags = string.split(post.head.tags, "%a+")
post.head.tags = string.split(post.head.tags, "[%a-]+")
end
post.head.slug = post.head.title