|
|
|
@ -46,12 +46,12 @@ class Engine {
|
|
|
|
|
}, true)
|
|
|
|
|
|
|
|
|
|
// adding defaults for view, data from site.yml, functions and pageQuery
|
|
|
|
|
this._defaults = {
|
|
|
|
|
this._defaults = assign(this._options.defaults, {
|
|
|
|
|
site: site,
|
|
|
|
|
asset: asset,
|
|
|
|
|
dayjs: dayjs,
|
|
|
|
|
pageQuery: new PageQuery(configStore.get('source'))
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -77,7 +77,7 @@ class Engine {
|
|
|
|
|
const options = configStore.get('options')
|
|
|
|
|
|
|
|
|
|
// if options minifyHtml is set, minify html, but only if page has type html
|
|
|
|
|
if (options.minifyHtml === true && data.page.type === 'html') {
|
|
|
|
|
if (options.minifyHtml === true && data.page.extensions === 'html') {
|
|
|
|
|
response = minify(response, {
|
|
|
|
|
removeComments: true,
|
|
|
|
|
collapseWhitespace: true,
|
|
|
|
|