diff --git a/layout/includes/head/config_site.pug b/layout/includes/head/config_site.pug index 220c55f..94cbb51 100644 --- a/layout/includes/head/config_site.pug +++ b/layout/includes/head/config_site.pug @@ -7,7 +7,7 @@ else isHighlightShrink = theme.highlight_shrink var showToc = false - if (theme.aside.enable) { + if (theme.aside.enable && page.aside !== false) { let tocEnable = false if (is_post()) { if (theme.toc.post) tocEnable = true diff --git a/layout/includes/page/flink.pug b/layout/includes/page/flink.pug index 59032c9..e63eb68 100644 --- a/layout/includes/page/flink.pug +++ b/layout/includes/page/flink.pug @@ -4,64 +4,64 @@ script. (()=>{ const replaceSymbol = (str) => { - return str.replace(/[\p{P}\p{S}]/gu, '-') + return str.replace(/[\p{P}\p{S}]/gu, "-") } - let result = '' - fetch('!{url_for(page.flink_url)}') + let result = "" + fetch("!{url_for(page.flink_url)}") .then(response => response.json()) .then(str => { for(let i = 0; i < str.length; i++){ const replaceClassName = replaceSymbol(str[i].class_name) - const className = str[i].class_name ? `

${str[i].class_name}

` : '' - const classDesc = str[i].class_desc ? `` : '' + const className = str[i].class_name ? `

${str[i].class_name}

` : "" + const classDesc = str[i].class_desc ? `` : "" - let listResult = '' + let listResult = "" const lists = str[i].link_list for(let j = 0; j < lists.length; j++){ listResult += `