<% var banner_url if (page.banner) { banner_url = page.banner } else if (theme.topic.tree[page.topic]?.banner != null) { banner_url = theme.topic.tree[page.topic]?.banner } else if (theme.wiki.tree[page.wiki]?.banner != null) { banner_url = theme.wiki.tree[page.wiki]?.banner } function layoutTitle() { const title = page.h1 != null ? page.h1 : page.title if (title && title.length > 0) { return `

${title}

` } else { return '' } } function layoutBottom() { const article_title = layoutTitle() if (article_title.length > 0) { return `
${article_title}
` } else { return `` } } function layoutDiv() { const top = partial('article_top_area') const bottom = layoutBottom() if (top.trim().length == 0 && bottom.length == 0) { return `` } var style = `` var el = `` el += `` return el } %> <%- layoutDiv() %>