`config.json` 中的 `style` 字段未正确应用
在设置了 style 字段之后,style 中的值被添加到了 <style> </style> 之外,如图所示:
config.json 的内容如下:
{
"title":"CarameowCookie 的碎碎念",
"subTitle":"一个自由而无用的灵魂",
"avatarUrl":"https://github.com/CarameowCookie.png",
"GMEEK_VERSION":"last",
"singlePage":["link"],
"dayTheme":"light",
"nightTheme":"dark_high_contrast",
"style":"/*这是 style 所在的位置*/"
}
@CarameowCookie 所以你在配置的时候需要自己添加style标签,可以看快速上手的常见问题里面的示例。
@CarameowCookie 所以你在配置的时候需要自己添加style标签,可以看快速上手的常见问题里面的示例。
@Meekdai 好的明白了,谢谢!
还有一个问题:在 style 中如果要使用 https://github.com/CarameowCookie/CarameowCookie.github.io/blob/main/assets/fonts/MiSans%20VF.ttf 这个文件,可以使用相对路径 ../blob/main/assets/fonts/MiSans%20VF.ttf 吗?
@CarameowCookie 这个是不行的,因为不是在同一个域名下面。你的博客域名是CarameowCookie.github.io,而你的资源的域名是github.com。
@CarameowCookie 这个是不行的,因为不是在同一个域名下面。你的博客域名是CarameowCookie.github.io,而你的资源的域名是github.com。
@Meekdai 好的,谢谢