Convert tags to lowercase for simplicity
This commit is contained in:
parent
2942df6f9e
commit
b79eb6c1a8
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ for file in restia.utils.files(params.input, "^./posts/.*%.md$") do
|
||||||
post.head.tags = string.split(post.head.tags, "[%a-]+")
|
post.head.tags = string.split(post.head.tags, "[%a-]+")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for key, tag in ipairs(post.head.tags) do
|
||||||
|
post.head.tags[key] = string.lower(tag)
|
||||||
|
end
|
||||||
|
|
||||||
post.head.slug = post.head.title
|
post.head.slug = post.head.title
|
||||||
:gsub(' ', '_')
|
:gsub(' ', '_')
|
||||||
:lower()
|
:lower()
|
||||||
|
|
Loading…
Reference in a new issue