Allow hyphens in post tags
This commit is contained in:
parent
ddb840b5e4
commit
908b34101c
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ for file in restia.utils.files(params.input, "^./posts/.*%.md$") do
|
||||||
post.head.timestamp = parsedate(post.head.date)
|
post.head.timestamp = parsedate(post.head.date)
|
||||||
|
|
||||||
if "string" == type(post.head.tags) then
|
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
|
end
|
||||||
|
|
||||||
post.head.slug = post.head.title
|
post.head.slug = post.head.title
|
||||||
|
|
Loading…
Reference in a new issue