File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,8 @@ module.exports = async function (context, page) {
53
53
page . data = Object . fromEntries ( Object . entries ( page . data ) . map ( ( [ k , v ] ) => [ k . toLowerCase ( ) , v ] ) ) ;
54
54
page . data . content = page . content ;
55
55
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 ) ;
59
58
60
59
// rewrite template head links (CSS, etc.)
61
60
[ 'head > link' ] . forEach ( selector => {
@@ -92,11 +91,11 @@ module.exports = async function (context, page) {
92
91
}
93
92
} )
94
93
} ) ;
95
- html = $ . html ( )
94
+ html = $ . html ( ) ;
96
95
97
96
const result = await uploadHTML ( page . name . substr ( 0 , page . name . lastIndexOf ( "." ) ) + ".html" , html ) ;
98
97
99
98
// context.log(html);
100
99
// context.log(result);
101
100
return result ;
102
- } ;
101
+ } ;
You can’t perform that action at this time.
0 commit comments