原版的Yohaku只能展示一个ICP,在云函数部分配置:
{
"footer": {
"otherInfo": {
"date": "2020-{{now}}",
"icp": {
"text": "萌 ICP 备 20250030 号",
"link": "https://icp.gov.moe/?keyword=20250030"
}
},
//....
但是对于既有萌ICP,又有标准ICP备案的情况就左右为难了
通过修改两个文件可以实现展示多个备案号:
在app.config.d.ts的 36 行附近添加新定义的moeicp
//第 36 行附近
export interface OtherInfo {
date: string
icp?: {
text: string
link: string
}
moeicp?: {
text: string
link: string
}
}
在FooterInfo.tsx的 36 行附近添加新定义的moeicp
CodeBlock Loading...
然后把云函数部分的配置改为这样,就能展示两个备案号了
CodeBlock Loading...