diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-01 21:00:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-01 21:00:21 +0000 |
commit | fdb7d0585af6b9054e895d6f3047766f799b6098 (patch) | |
tree | 59e8b2c6971d1fb91d08250283dfa74589869d2d /Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua | |
parent | 1eea7ddd33803c5945bc4b2b2654c960d42aa0c2 (diff) |
make4ht (1nov19)
git-svn-id: svn://tug.org/texlive/trunk@52603 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua')
-rw-r--r-- | Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua b/Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua index 6378f0440aa..969d47ecaaa 100644 --- a/Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua +++ b/Master/texmf-dist/scripts/make4ht/filters/make4ht-staticsite.lua @@ -1,4 +1,5 @@ local domobj = require "luaxml-domobject" +local log = logging.new("staticsite") -- save the header settings in YAML format local function make_yaml(tbl, level) local t = {} @@ -69,7 +70,6 @@ local function get_header(tbl) end return function(s,par) - print(os.getenv "blog_home") local dom = domobj.parse(s) local properties = {} local head = dom:query_selector("head")[1] @@ -84,7 +84,7 @@ return function(s,par) properties.styles = styles local metas = {} for _, meta in ipairs(head:query_selector("meta")) do - print(meta:serialize()) + log:debug("parsed meta: " .. meta:serialize()) table.insert(metas, {charset= meta:get_attribute("charset"), content = meta:get_attribute("content"), property = meta:get_attribute("property"), name = meta:get_attribute("name")}) end properties.meta = metas @@ -92,7 +92,7 @@ return function(s,par) local body = dom:query_selector("body")[1] - print(get_header(properties)) + log:debug(get_header(properties)) -- return s return get_header(properties) .. body:serialize():gsub("<body.->", ""):gsub("</body>", "") end |