Skip to content

Commit beeb5b8

Browse files
authored
Cleanups
1 parent 313087f commit beeb5b8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

renderTemplateActivity/index.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ module.exports = async function (context, page) {
5353
page.data = Object.fromEntries(Object.entries(page.data).map(([k, v]) => [k.toLowerCase(), v]));
5454
page.data.content = page.content;
5555

56-
var html = mustache.render(template, page.data);
57-
58-
$ = cheerio.load(html);
56+
var html = mustache.render(template, page.data),
57+
$ = cheerio.load(html);
5958

6059
// rewrite template head links (CSS, etc.)
6160
['head > link'].forEach(selector => {
@@ -92,11 +91,11 @@ module.exports = async function (context, page) {
9291
}
9392
})
9493
});
95-
html = $.html()
94+
html = $.html();
9695

9796
const result = await uploadHTML(page.name.substr(0, page.name.lastIndexOf(".")) + ".html", html);
9897

9998
// context.log(html);
10099
// context.log(result);
101100
return result;
102-
};
101+
};

0 commit comments

Comments
 (0)