Ghost 升级至 4.X
照例 npm install -g ghost-cli@latest
,然后 ghost update。
然后你会发现 member 功能关不掉,开发者工具会出现 Portal 相关的 401 错误。
解决方法:
<style>
#ghost-portal-root {
display: none;
}
.nav-login, .nav-subscribe {
display: none;
}
</style>
以及将 core/shared/config/defaults.json
第 124 行 url 清空,最后 ghost restart