[opt] logo

This commit is contained in:
xaoxuu 2024-01-22 13:00:00 +08:00
parent 6c511afbed
commit 3cbd86cb57
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@ if (page.logo) {
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 = {

View File

@ -10,6 +10,7 @@
height: 48px
margin-right: 1rem
border-radius: 4px
flex-shrink: 0
a
color: inherit
display: flex
@ -56,7 +57,7 @@
animation-timing-function: linear
a.title
font-size: 1.75rem
font-size: 1.5rem
font-weight: 900
color: inherit
line-height: 1.2