[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] const proj = theme.wiki.tree[page.wiki]
var l = proj.logo var l = proj.logo
if (l) { if (l) {
if (l.title.includes('](') == false) {
l.title = `[${l.title}](${url_for(proj.homepage?.path || '')})`
}
logo = l logo = l
} else if (proj.name || proj.icon) { } else if (proj.name || proj.icon) {
logo = { logo = {

View File

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