<% // logo.icon, logo.title, logo.subtitle, logo.url function layoutTitle(main, url, sub) { var el = '' el += `` el += `
${main}
` if (sub) { const arr = sub.split('|') if (arr.length > 1) { el += `
${arr.shift().trim()}
` el += `
${arr.join('|')}
` } else { el += `
${sub}
` } } el += `
` return el } function layoutDiv() { var el = '' el += `
` el += `
` if (logo.icon) { el += `
` } else if (md_text(logo.avatar)) { el += `` if (theme.style.animated_avatar.animate) { el += `
` } el += `` el += `
` } const main = md_text(logo.title) if (main) { let url = md_link(logo.title) el += layoutTitle(main, url, logo.subtitle) } el += `
` el += '
' return el } %> <%- layoutDiv() %>