mirror of
https://github.com/wassname/template.git
synced 2026-07-17 11:33:44 +08:00
Header prerendering now adds markup directly and adds distill-prerendered tag which TEMPLATE webcomponents now respect
This commit is contained in:
@@ -37,6 +37,7 @@ const options = { runScripts: 'outside-only', QuerySelector: true, virtualConsol
|
||||
JSDOM.fromFile(program.inputPath, options).then(dom => {
|
||||
const window = dom.window;
|
||||
const document = window.document;
|
||||
const HTMLElement = window.HTMLElement;
|
||||
|
||||
const data = new transforms.FrontMatter;
|
||||
data.inputHTMLPath = program.inputPath; // may be needed to resolve relative links!
|
||||
|
||||
Reference in New Issue
Block a user