%
var logo = theme.logo
if (page.logo) {
logo = Object.assign({}, logo, page.logo)
} else if (theme.wiki.tree[page.wiki]) {
const proj = theme.wiki.tree[page.wiki]
var l = proj.logo
if (l) {
if (l.title.includes('](') == false) {
l.title = `[${l.title}](${url_for(proj.homepage?.path || '')})`
}
logo = l
} else if (proj.name || proj.icon) {
logo = {
icon: proj.icon || theme.default.project,
title: `[${proj.name || proj.title}](${url_for(proj.homepage?.path || '')})`,
subtitle: proj.subtitle
}
}
}
// logo.icon, logo.title, logo.subtitle, logo.url
function layoutTitle(main, url, sub) {
var el = ''
el += ``
el += `