From e74d70af1b78366d7a1f8e92430da9742181f38b Mon Sep 17 00:00:00 2001 From: murat Date: Tue, 16 Jun 2026 21:29:25 +0300 Subject: [PATCH] feat(options): draft control --- luago.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luago.lua b/luago.lua index 7a90d18..4603440 100644 --- a/luago.lua +++ b/luago.lua @@ -115,6 +115,7 @@ lfs.rmdir("public") lfs.mkdir("public") for index, _ in ipairs(markdownFiles) do + if markdownFiles[index].options["draft"] ~= "yes" then local workDir = lfs.currentdir() -- create html file for that md file local htmlFile = io.open(workDir .. "/public/" .. markdownFiles[index].fileName .. ".html", 'w') @@ -264,4 +265,4 @@ for index, _ in ipairs(markdownFiles) do print("Error: Cannot create html file for " .. markdownFiles[index].filePath) end end - +end