% // 默认组件 if (page.sidebar == undefined) { if (page.layout == 'post' && page.content) { page.sidebar = ['toc', 'recent']; } else if (page.layout == 'wiki' && page.content) { page.sidebar = ['toc', 'wiki_more']; } else { page.sidebar = ['welcome', 'recent']; } } function layoutFooterDiv() { if (theme.footer.social && theme.footer.social.length > 0) { var el = ''; return el; } else { return ''; } } %>