feat(branding): default both site logos to assets/img/logo.png
- Point 站点 Logo / 暗色模式 Logo schema defaults (PHP + VUE) and the Settings::logo_url() fallback at assets/img/logo.png. - Point the footer night image default at the same file. - Remove logo_dark.png and the now-unreferenced assets/icons/default-logo.svg along with the private default_asset_url() helper that was its only reader. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1dfcc38a83
commit
6bcfbfb252
7 files changed
+11
-24
No files matched your search
@@ -164,10 +164,10 @@ test('brand icons render despite the legacy fa-fab double prefix', () => {
|
||||
});
|
||||
|
||||
test('icon assets are consolidated and dead icon assets are gone', () => {
|
||||
for (const file of ['assets/icons/upload-add.svg', 'assets/icons/default-favicon.svg', 'assets/icons/default-logo.svg', 'assets/icons/playing.svg', 'assets/icons/user-certification.svg']) {
|
||||
for (const file of ['assets/icons/upload-add.svg', 'assets/icons/default-favicon.svg', 'assets/icons/playing.svg', 'assets/icons/user-certification.svg']) {
|
||||
assert.ok(fs.existsSync(path.join(root, file)), `${file} exists`);
|
||||
}
|
||||
for (const file of ['assets/img/upload-add.svg', 'assets/img/vip-1.svg', 'assets/img/vip-2.svg', 'assets/img/404.svg', 'assets/img/msg-system.svg', 'assets/fonts/img-code.ttf', 'assets/js/runtime/gutenberg-extend.js', 'assets/fontawesome5/webfonts/fa-solid-900.ttf']) {
|
||||
for (const file of ['assets/img/upload-add.svg', 'assets/img/logo_dark.png', 'assets/icons/default-logo.svg', 'assets/img/vip-1.svg', 'assets/img/vip-2.svg', 'assets/img/404.svg', 'assets/img/msg-system.svg', 'assets/fonts/img-code.ttf', 'assets/js/runtime/gutenberg-extend.js', 'assets/fontawesome5/webfonts/fa-solid-900.ttf']) {
|
||||
assert.ok(!fs.existsSync(path.join(root, file)), `${file} removed`);
|
||||
}
|
||||
const mainCss = read('assets/css/main.css');
|
||||
|
||||
Reference in new issue
Block a user