修改配置文件
This commit is contained in:
+129
@@ -0,0 +1,129 @@
|
||||
export const siteConfig = {
|
||||
site: {
|
||||
url: 'https://blog.biss.click',
|
||||
name: "Bi's Blog",
|
||||
description: 'Personal blog by biss.',
|
||||
language: 'zh-CN',
|
||||
domain: 'blog.biss.click',
|
||||
slogan: '好奇心转化为代码的空间。',
|
||||
startTime: '2025-01-01T00:00:00+08:00',
|
||||
copyrightStartYear: 2025,
|
||||
license: '内容采用 CC BY-NC-SA 4.0 协议',
|
||||
},
|
||||
author: {
|
||||
name: 'biss',
|
||||
email: 'bishsh2006@gmail.com',
|
||||
github: 'https://github.com/bishshi',
|
||||
avatar: 'https://free.picui.cn/free/2025/08/10/689845496a283.png',
|
||||
},
|
||||
assets: {
|
||||
icon: '/images/Bi.ico',
|
||||
background: '/images/background.png',
|
||||
},
|
||||
nav: [
|
||||
{ label: '归档', href: '/archives/', icon: 'fa-solid fa-box-archive' },
|
||||
{ label: '分类', href: '/categories/', icon: 'fa-solid fa-folder-open' },
|
||||
{ label: '标签', href: '/tags/', icon: 'fa-solid fa-tags' },
|
||||
{ label: '说说', href: '/shuoshuo/', icon: 'fa-regular fa-comments' },
|
||||
{ label: '关于', href: '/about/', icon: 'fa-solid fa-heart' },
|
||||
{ label: '友链', href: '/link/', icon: 'fa-solid fa-link' },
|
||||
],
|
||||
footer: {
|
||||
contactLabel: '联系方式',
|
||||
links: [
|
||||
{ label: '发展历程', href: '/archives/' },
|
||||
{ label: '隐私政策', href: '/privacy/' },
|
||||
],
|
||||
poweredBy: [
|
||||
{ label: 'EdgeOne', href: 'https://edgeone.ai/' },
|
||||
{ label: 'ASTRO', href: 'https://astro.build/' },
|
||||
],
|
||||
},
|
||||
social: [
|
||||
{ label: '发送邮件', href: 'mailto:bishsh2006@gmail.com', icon: 'fa-solid fa-envelope' },
|
||||
{ label: '订阅 RSS', href: '/rss.xml', icon: 'fa-solid fa-rss' },
|
||||
{ label: 'GitHub', href: 'https://github.com/bishshi', icon: 'fa-brands fa-github', external: true },
|
||||
],
|
||||
pagination: {
|
||||
postsPerPage: 16,
|
||||
},
|
||||
comments: {
|
||||
envId: 'https://comment.biss.click',
|
||||
region: '',
|
||||
script: 'https://cdn.jsdelivr.net/npm/twikoo@1.7.7/dist/twikoo.min.js',
|
||||
},
|
||||
externalLinks: {
|
||||
waitSeconds: 10,
|
||||
whitelist: [
|
||||
'blog.biss.click',
|
||||
'biss.click',
|
||||
'github.com',
|
||||
'astro.build',
|
||||
'edgeone.ai',
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
],
|
||||
},
|
||||
talks: {
|
||||
apiUrl: 'https://mm.biss.click/api/echo/page',
|
||||
pageSize: 30,
|
||||
homeLimit: 6,
|
||||
cacheKey: 'talksCache',
|
||||
cacheTimeKey: 'talksCacheTime',
|
||||
cacheDurationMs: 30 * 60 * 1000,
|
||||
fallbackAvatar: 'https://free.picui.cn/free/2025/08/10/689845496a283.png',
|
||||
},
|
||||
search: {
|
||||
apiKey: '2uxQzk7eD2GBCljdSmIiuU3ause7UK9n',
|
||||
server: {
|
||||
host: 'typesense.biss.click',
|
||||
port: '443',
|
||||
protocol: 'https',
|
||||
},
|
||||
indexName: 'blogs',
|
||||
searchParams: {
|
||||
query_by: 'title,content',
|
||||
highlight_full_fields: 'title,content',
|
||||
per_page: 8,
|
||||
num_typos: 1,
|
||||
typo_tokens_threshold: 1,
|
||||
prefix: true,
|
||||
},
|
||||
ui: {
|
||||
maxRetries: 10,
|
||||
retryDelay: 100,
|
||||
animationDuration: 300,
|
||||
maxInitRetries: 30,
|
||||
placeholder: '输入关键词寻找故事...',
|
||||
},
|
||||
},
|
||||
cdn: {
|
||||
instantsearchCss: 'https://cdn.jsdmirror.com/npm/instantsearch.css/themes/reset-min.css',
|
||||
fancyboxCss: 'https://cdn.jsdmirror.com/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css',
|
||||
fontawesomeCss: 'https://cdn.jsdmirror.com/npm/@fortawesome/fontawesome-free@6.7.2/css/all.min.css',
|
||||
instantsearchJs: 'https://cdn.jsdmirror.com/npm/instantsearch.js@4.56.0',
|
||||
typesenseAdapterJs: 'https://cdn.jsdmirror.com/npm/typesense-instantsearch-adapter@2.7.0/dist/typesense-instantsearch-adapter.min.js',
|
||||
fancyboxJs: 'https://cdn.jsdmirror.com/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js',
|
||||
jqueryJs: 'https://code.jquery.com/jquery-4.0.0.min.js',
|
||||
welcomeMessageJs: 'https://cdn.jsdmirror.com/gh/bishshi/welcomemessage/txmap.js',
|
||||
},
|
||||
friends: [
|
||||
{
|
||||
name: 'GitHub',
|
||||
url: 'https://github.com/bishshi',
|
||||
avatar: '/images/Bi.ico',
|
||||
description: '站长的 GitHub 主页',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export const publicSiteConfig = {
|
||||
site: siteConfig.site,
|
||||
author: siteConfig.author,
|
||||
comments: siteConfig.comments,
|
||||
talks: siteConfig.talks,
|
||||
search: siteConfig.search,
|
||||
externalLinks: siteConfig.externalLinks,
|
||||
};
|
||||
|
||||
export default siteConfig;
|
||||
Reference in New Issue
Block a user