{{define "site-logo-sidebar"}} {{if and (eq .LogoType "image") .LogoURL}} {{.SiteName}} {{else}} {{if .LogoText}}{{.LogoText}}{{else}}{{.SiteName}}{{end}} {{end}} {{end}} {{define "site-logo-admin"}} {{if and (eq .LogoType "image") .LogoURL}} {{.SiteName}} {{else}} {{if .LogoText}}{{.LogoText}}{{else}}{{.SiteName}}{{end}} {{end}} {{end}} {{/* 顶栏与侧栏共用同一套 LOGO 结构,保证门户页与首页视觉一致 */}} {{define "site-logo-topnav"}} {{template "site-logo-sidebar" .}} {{end}}