mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
feat(config): 添加EdgeOne CN官方站点链接
在officialSites配置中添加EdgeOne CN的博客链接
This commit is contained in:
@@ -57,6 +57,7 @@ export const siteConfig: SiteConfig = {
|
||||
},
|
||||
],
|
||||
officialSites: [
|
||||
{ url: "https://acofork.com", alias: "EdgeOne CN" },
|
||||
{ url: "https://2x.nz", alias: "Global" },
|
||||
],
|
||||
};
|
||||
|
||||
@@ -311,7 +311,9 @@ var _hmt = _hmt || [];
|
||||
}).filter(domain => domain !== null);
|
||||
|
||||
// 检查当前域名是否为官方域名或本地开发环境
|
||||
const isOfficialDomain = officialDomains.includes(currentDomain);
|
||||
const isOfficialDomain = officialDomains.some(officialDomain =>
|
||||
currentDomain === officialDomain || currentDomain.endsWith('.' + officialDomain)
|
||||
);
|
||||
const isLocalDev = currentDomain === 'localhost' || currentDomain === '127.0.0.1';
|
||||
|
||||
// 如果当前域名不是官方域名且不是本地开发环境
|
||||
|
||||
Reference in New Issue
Block a user