This commit is contained in:
2022-11-13 19:44:54 +03:00
parent fbe490d322
commit 6ca4c9241e
4 changed files with 12 additions and 10 deletions

View File

@@ -50,10 +50,11 @@ def export_mdx(r):
def export_body(shout, storage):
entry = storage["content_items"]["by_oid"][shout["oid"]]
if entry:
shout["body"] = prepare_html_body(entry) # prepare_md_body(entry)
shout["body"], media = prepare_html_body(entry) # prepare_md_body(entry)
shout["media"] = media
export_mdx(shout)
print("[export] html for %s" % shout["slug"])
body = extract_html(entry)
body, _media = extract_html(entry)
open(contentDir + shout["slug"] + ".html", "w").write(body)
else:
raise Exception("no content_items entry found")