It is hard to tell without a MWE, but if you use exact code from the question you linked, I would say that the problem is a bug in the tidy extension for make4ht. It didn't check if the string returned by the tidy command is not empty.
We can see that the problem is with tidy from this message:
sh: 1: tidy: not found
...exmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua:86: attempt to index a nil value (local 'head')
You can either install Tidy, or disable it in the .make4ht configuration file:
local outdir = os.getenv "kodymirus_root" or "out"
local domfilter = require "make4ht-domfilter"
-- remove the \maketitle environment from the HTML file, title will be inserted in the template
local domprocess = domfilter{function(dom)
local maketitles = dom:query_selector(".maketitle")
for _, el in ipairs(maketitles) do
print "removing maketitle"
el:remove_node()
end
return dom
end}
filter_settings "staticsite" {
site_root = outdir,
map = {
[".css$"] = "css/"
},
header = {
layout="post",
date = function(parameters)
return os.date("!%Y-%m-%d %T", parameters.time)
end
}
}
Make:enable_extension "common_domfilters"
if mode=="draft" then
Make:htlatex {}
elseif mode=="publish" then
-- Make:htlatex {}
Make:match("html$", domprocess)
-- Make:enable_extension "tidy"
Make:htlatex {}
else
Make:htlatex {}
Make:htlatex {}
Make:htlatex {}
end
If you are interested in blogging with TeX4ht, see also this blog that is generated from LaTeX sources automatically by Github. Here are the sources.
hello.texfile is. Adding the links to the earlier questions is good. But the question itself should contain all material needed to run it. – Nasser Mar 29 '22 at 00:54