From cf907f014ed2189467d4de386f47f02493555308 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 21 Jan 2024 22:28:35 +0800 Subject: [PATCH] =?UTF-8?q?[opt]=20remove=20topic=E2=80=99s=20logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/sidebar/logo.ejs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/layout/_partial/sidebar/logo.ejs b/layout/_partial/sidebar/logo.ejs index 61c4495..ff57cf6 100644 --- a/layout/_partial/sidebar/logo.ejs +++ b/layout/_partial/sidebar/logo.ejs @@ -14,18 +14,6 @@ if (page.logo) { subtitle: proj.subtitle } } -} else if (theme.topic.tree[page.topic]) { - const topic = theme.topic.tree[page.topic] - var l = topic.logo - if (l) { - logo = l - } else if (topic.name || topic.icon) { - logo = { - icon: topic.icon || theme.default.topic, - title: `[${topic.name || topic.title}](${url_for(topic.homepage?.path || '')})`, - subtitle: topic.subtitle - } - } } // logo.icon, logo.title, logo.subtitle, logo.url