2024-01-04 22:50:57 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
const author = page.author
|
|
|
|
var el = ``
|
|
|
|
el += `<div class="tag-plugin banner author">`
|
|
|
|
if (author.banner) {
|
|
|
|
el += `<img class="bg" src="${author.banner}">`
|
|
|
|
}
|
|
|
|
el += `
|
|
|
|
<div class="content">
|
|
|
|
<div class="top">
|
|
|
|
<button class="back cap" onclick="window.history.back()">
|
2024-01-19 13:51:55 +08:00
|
|
|
${icon('default:goback')}
|
2024-01-04 22:50:57 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="bottom">
|
|
|
|
<img class="avatar" src="${author.avatar}">
|
|
|
|
<div class="text-area">
|
|
|
|
<p class="text title">${author.name}</p>
|
|
|
|
<div class="text subtitle">${author.description || ""}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`
|
|
|
|
el += `</div>`
|
|
|
|
return el
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|