看到论坛好多人在问怎么样把Chevereto的图片展示页面从"关于"改为"嵌入代码"页面, 其实方法很简单, 只需要修改app/routes/route.image.php文件.

        $tabs = [
        [
            "label"        => _s('About'),
            "id"        => "tab-about",
            "current"    => true,
        ]
    ];
    if(CHV\getSetting('theme_show_embed_content')) {
        $tabs[] = [
            "label"        => _s('Embed codes'),
            "id"        => "tab-codes",
        ];
    }

修改为

    $tabs = [
        [
            "label"        => _s('About'),
            "id"        => "tab-about",
        ]
    ];
    if(CHV\getSetting('theme_show_embed_content')) {
        $tabs[] = [
            "label"        => _s('Embed codes'),
            "id"        => "tab-codes",
            "current"    => true,
        ];
    }


0XHUgO.md.png