From 908b34101ce7c9e0fd9d93e41becdf569372f708 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 30 Aug 2023 13:59:40 +0200 Subject: [PATCH] Allow hyphens in post tags --- lib/posts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/posts.lua b/lib/posts.lua index 762a92a..82685c9 100644 --- a/lib/posts.lua +++ b/lib/posts.lua @@ -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