一、将以下代码放入OPT中

1
"logo" : "logo图片地址",

logo图片地址改为自己自定义logo的地址【,不要漏掉】

二、示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
const OPT = {
"user" : "admin", //后台密码
"password" : "admin", //后台密码
"siteDomain" : "blog.ifts.ml",// 域名(不带https 也不带/)
"siteName" : "道辰的小破站",//博客名称
"siteDescription":"A Blog Powered By Cloudflare Workers and KV",//博客描述
"keyWords":"cloudflare,KV,workers,blog",//关键字
"cacheZoneId":"xxxxxxxxxxxxxxxxxxxxxxxx",//清理缓存用 cf区域 ID
"cacheToken":"xxxxxxxxxxxxxxxxxxxxxxxx",//清理缓存用 cf API token
"logo" : "https://cdn.jsdelivr.net/gh/DaoChen6/img@main/logo2.png",//Logo
"pageSize" : 5,//每页文章数
"recentlySize" : 6,//最近文章数
"readMoreLength":150,//阅读更多截取长度
"cacheTime" : 60*60*24*0.5, //网页缓存时长(秒),建议=文章更新频率
"themeURL" : "https://cdn.jsdelivr.net/gh/DaoChen6/CF-blog@master/themes/JustNews/", // 模板地址,以 "/"" 结尾
"html404" : `<b>404</b>`,//404页面代码
"codeBeforHead":``,//其他代码,显示在</head>前
"codeBeforBody":``,//其他代码,显示在</body>前
"commentCode":``,//评论区代码
"widgetOther":``,//20201224新增参数,用于右侧 小部件扩展
"otherCodeA":``,//其他参数A,可设置为 "阅读次数:"四个大字
"otherCodeB":``,//其他参数A
"otherCodeC":``,//其他参数A
"otherCodeD":``,//其他参数A
"otherCodeE":``,//其他参数A
"copyRight" :`Powered by <a href="https://www.cloudflare.com">CF Workers</a> & <a href="https://blog.gezhong.vip">CF-Blog</a> & <a href="https://www.iflm.ml">道辰</a>`,//自定义版权信息,建议保留大公无私的 Coudflare 和 作者 的链接
"robots":`User-agent: *
Disallow: /admin`//robots.txt设置
};