import type { TeekConfig } from "@teek/config"; let name = "DowneyRem's Blog" let wallPapper = [ "/wall/DragaliaLost/1.png", "/wall/DragaliaLost/2.png", "/wall/DragaliaLost/3.png", "/wall/DragaliaLost/4.png", "/wall/Legendz/1.png", "/wall/Warframe/Gauss.jpg", "/wall/Warframe/Sevagoth.png", ] let description = [ "Stay hungry, stay foolish —— Steve Jobs", "Done is better than perfect —— FaceBook", "Talk is cheap. Show me the code. —— Linus Torvalds", "种一棵树最好的时间是十年前,其次是现在", "不积跬步,无以至千里;不积小流,无以成江海 —— 荀子", "万物皆有裂痕,那是光照进来的地方 —— 萊昂納德·科恩", "不如意事常八九,可与言者无二三", ] // 文档配置 export const teekDocConfig: TeekConfig = { vpHome: true, teekHome: false, themeEnhance: { layoutSwitch: { defaultMode: "bothWidthAdjustable", }, }, }; // 博客基础配置 const teekBlogCommonConfig: TeekConfig = { // teekHome: true, // vpHome: false, anchorScroll: false, themeSize: "large", loading: true, banner: { name: name, imgSrc: wallPapper, description: description, }, wallpaper: { enabled: true, hideBanner: false, hideMask: true, }, // bodyBgImg: { // imgSrc: wallPapper, // body 背景图片链接。单张图片 string | 多张图片 string[], 多张图片时每隔 imgInterval 秒换一张 // imgOpacity: 1, // body 背景图透明度,选值 0.1 ~ 1.0 // imgInterval: 15000, // body 当多张背景图时(imgSrc 为数组),设置切换时间,单位:毫秒 // imgShuffle: false, // body 背景图是否随机切换,为 false 时按顺序切换 // mask: false, // body 背景图遮罩 // maskBg: "rgba(0, 0, 0, 0.2)", // body 背景图遮罩颜色,如果为数字,则是 rgba(0, 0, 0, ${maskBg}),如果为字符串,则作为背景色。mask 为 true 时生效 // }, themeEnhance: { enabled: true, // 启用主题增强功能 position: "top", // 位置,top 为导航栏右侧,bottom 为右下角 // 布局切换配置 layoutSwitch: { disabled: false, // 禁用布局切换 defaultMode: "original", // 布局切换的默认模式 disableHelp: false, // 禁用帮助提示 disableAnimation: false, // 禁用布局切换动画 defaultDocMaxWidth: 90, // 内容布局最大宽度的默认百分比,仅限 0-100 disableDocMaxWidthHelp: false, // 禁用帮助提示 defaultPageMaxWidth: 95, // 页面布局最大宽度的默认百分比,仅限 0-100 disablePageMaxWidthHelp: false, // 禁用帮助提示 }, // 布局主题色配置 themeColor: { disabled: false, // 禁用布局主题色切换 defaultColorName: "vp-default", // 布局默认主题色 defaultSpread: false, // 是否将主题色扩散到其他元素(根据主题色计算其他元素需要的颜色) disableHelp: false, // 禁用帮助提示 disabledInMobile: false, // 是否在移动端禁用 }, // 聚光灯配置 spotlight: { disabled: false, // 禁用聚光灯 defaultStyle: "aside", // 聚光灯默认样式 disableHelp: false, // 禁用帮助提示 defaultValue: true, // 聚光灯默认开关状态 }, }, page: { disabled: false, // 是否禁用 pageSize: 10, // 每页显示条目数 pagerCount: 5, // 设置最大页码按钮数。 页码按钮的数量,当总页数超过该值时会折叠 layout: "prev, pager, next, jumper, ->, total", // 组件布局,子组件名用逗号分隔 size: "default", // 分页大小 background: true, // 是否为分页按钮添加背景色 hideOnSinglePage: false, // 只有一页时是否隐藏 }, friendLink: { list: [], autoScroll: true, }, social: [], }; // 博客默认配置 export const teekBlogConfig: TeekConfig = { ...teekBlogCommonConfig, banner: { name: name, bgStyle: "fullImg", imgSrc: wallPapper, description: description, descStyle: "types", }, }; // 博客小图配置 export const teekBlogParkConfig: TeekConfig = { ...teekBlogCommonConfig, banner: { name: name, bgStyle: "partImg", imgSrc: wallPapper, description: description, descStyle: "switch", }, }; // 博客大图配置 export const teekBlogFullConfig: TeekConfig = { ...teekBlogCommonConfig, post: { coverImgMode: "full", }, banner: { name: name, bgStyle: "fullImg", imgSrc: wallPapper, description: description, descStyle: "types", }, }; // 博客全图配置 export const teekBlogBodyConfig: TeekConfig = { ...teekBlogCommonConfig, pageStyle: "segment-nav", bodyBgImg: { imgSrc: wallPapper, }, banner: { name: name, bgStyle: "fullImg", description: description, descStyle: "types", }, themeEnhance: { layoutSwitch: { defaultMode: "original", }, }, }; // 博客卡片配置 export const teekBlogCardConfig: TeekConfig = { ...teekBlogCommonConfig, page: { pageSize: 12, // 每页显示的文章数量 }, post: { postStyle: "card", }, homeCardListPosition: "left", banner: { name: name, bgStyle: "fullImg", imgSrc: wallPapper, description: description, descStyle: "types", }, };