|
|
@ -2,6 +2,7 @@ import * as DataEvent from '../../src/com/events/DataEvent';
|
|
|
|
import StringUtils from '../../src/com/utils/StringUtils';
|
|
|
|
import StringUtils from '../../src/com/utils/StringUtils';
|
|
|
|
import fs from 'fs-extra';
|
|
|
|
import fs from 'fs-extra';
|
|
|
|
import sanitize from 'sanitize-html';
|
|
|
|
import sanitize from 'sanitize-html';
|
|
|
|
|
|
|
|
import Settings from './Settings';
|
|
|
|
const config = require('../../site/settings.json');
|
|
|
|
const config = require('../../site/settings.json');
|
|
|
|
const tags_list = require('../../site/tags.json');
|
|
|
|
const tags_list = require('../../site/tags.json');
|
|
|
|
const pug = require('pug');
|
|
|
|
const pug = require('pug');
|
|
|
@ -66,7 +67,8 @@ export default class Render {
|
|
|
|
title: page.metadata.title,
|
|
|
|
title: page.metadata.title,
|
|
|
|
default_bg: page.metadata.feature,
|
|
|
|
default_bg: page.metadata.feature,
|
|
|
|
content: html,
|
|
|
|
content: html,
|
|
|
|
tags: page.metadata.tags
|
|
|
|
tags: page.metadata.tags,
|
|
|
|
|
|
|
|
menu: config.menu
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fs.ensureDir(path).then(() => {
|
|
|
|
fs.ensureDir(path).then(() => {
|
|
|
|