diff --git a/src/core/render/tpl.js b/src/core/render/tpl.js index 64ba925..2b58622 100644 --- a/src/core/render/tpl.js +++ b/src/core/render/tpl.js @@ -1,4 +1,5 @@ import {isMobile} from '../util/env' +import {escapeString} from '../util/core' /** * Render github corner * @param {Object} data @@ -30,6 +31,9 @@ export function corner(data, cornerExternalLinkTarge) { * Render main content */ export function main(config) { + + const name = config.name? escapeString(config.name):'' + const aside = '