@penjc/homepage
Version:
个人主页模板,支持博客、随笔等功能
289 lines (272 loc) • 8.39 kB
text/typescript
export const siteConfig = {
// 基本信息
name: "penjc",
title: "無限進步",
description: "个人主页",
url: "https://pengjiancheng.com",
// 个人信息
profile: {
avatar: "/images/avatar.jpg",
bio: "無限進步",
location: "上海, 中国",
email: "penjc204@gmail.com",
github: "https://github.com/penjc",
// 社交媒体链接(可选配置)
social: {
linkedin: "https://linkedin.com/in/username",
twitter: "https://twitter.com/username",
bilibili: "https://space.bilibili.com/12345678",
youtube: "https://youtube.com/c/username",
telegram: "https://t.me/username",
instagram: "https://instagram.com/username",
},
// RSS 订阅配置
rss: {
enabled: true,
title: "RSS 订阅",
},
// 旧版主页链接
oldSite: {
enabled: false,
url: "https://old.pengjiancheng.com",
title: "旧版主页",
},
},
// 关于我页面配置
about: {
// 个人简介
intro: {
title: "个人简介",
paragraphs: [
"后端开发工程师。熟练掌握后端技术栈。喜欢学习新技术,关注行业发展趋势。",
"在工作之余,我喜欢分享技术文章,参与开源项目,以及探索新的技术领域。相信技术可以改变世界,希望通过自己的努力为这个目标贡献一份力量。"
]
},
// 教育背景
education: {
title: "教育背景",
items: [
{
year: "2020 - 2024",
degree: "计算机科学与技术 硕士",
school: "上海交通大学",
description: "主修计算机科学与技术,专业课程包括数据结构、算法设计、数据库系统、软件工程等。",
gpa: "3.8/4.0"
},
{
year: "2018 - 2022",
degree: "计算机科学与技术 学士",
school: "上海大学",
description: "主修计算机科学与技术,专业课程包括数据结构、算法设计、数据库系统、软件工程等。",
gpa: "3.8/4.0"
}
]
},
// 工作经历
experience: {
title: "工作经历",
items: [
{
year: "2023 - 现在",
title: "你的职位", // 可选字段
company: "公司名称", // 可选字段
description: "工作描述。", // 可选字段
highlights: [ // 可选字段,可以设为空数组
"工作亮点1",
"工作亮点2",
"工作亮点3"
]
},
{
year: "2022 - 2023",
title: "另一个职位",
company: "另一家公司",
description: "工作描述。",
// highlights可以省略
}
]
},
// 技能专长
skills: {
title: "技能专长",
categories: [
{
name: "后端开发",
skills: [
{ name: "Java/Spring Boot", level: 95 },
{ name: "Python/Django", level: 88 },
{ name: "Node.js/Express", level: 80 },
{ name: "Go", level: 75 }
]
},
{
name: "数据库",
skills: [
{ name: "MySQL", level: 90 },
{ name: "Redis", level: 85 },
{ name: "MongoDB", level: 80 },
{ name: "PostgreSQL", level: 75 }
]
},
{
name: "云服务与运维",
skills: [
{ name: "Docker/Kubernetes", level: 85 },
{ name: "AWS/阿里云", level: 80 },
{ name: "Linux运维", level: 85 },
{ name: "CI/CD", level: 75 }
]
},
{
name: "前端技术",
skills: [
{ name: "JavaScript/TypeScript", level: 85 },
{ name: "React/Next.js", level: 80 },
{ name: "Vue.js", level: 75 }
]
}
]
},
},
// 导航配置
navigation: {
main: [
{ name: "首页", href: "/" },
{ name: "博客", href: "/blog" },
{ name: "随笔", href: "/thoughts" },
{ name: "项目", href: "/projects" },
{ name: "关于", href: "/about" },
],
},
// 项目配置
projects: {
enabled: true, // 是否启用项目页面
title: "项目",
description: "探索技术作品与创新项目",
items: [
{
id: "homepage",
title: "个人主页",
description: "基于 Next.js 的个人主页模版,支持博客、随笔等功能",
image: "/images/projects/homepage.jpg",
tags: ["Next.js", "TypeScript", "Tailwind CSS"],
github: "https://github.com/penjc/homepage",
demo: "https://pengjiancheng.com",
status: "active", // active | completed | archived
featured: true
},
{
id: "api-gateway",
title: "Spring",
description: "Spring Framework 的核心框架,提供全面的企业级应用开发支持",
image: "/images/projects/spring.jpg",
tags: ["Java", "FrameWork", "Spring FrameWork"],
github: "https://github.com/spring-projects/spring-framework",
status: "active",
featured: true
},
{
id: "apache-nifi",
title: "Apache NiFi 数据流处理",
description: "可视化数据流编排平台,支持大规模数据采集、转换与路由,适用于实时和批量数据处理场景",
image: "/images/projects/apache-nifi.jpg",
tags: ["Java", "Apache NiFi", "Kafka"],
github: "https://github.com/apache/nifi",
status: "completed",
featured: false
},
{
id: "redis",
title: "Redis 内存数据存储",
description: "高性能的内存数据存储系统,广泛应用于缓存、消息队列、分布式锁等高并发场景",
tags: ["Redis", "Cache", "Pub/Sub"],
github: "https://github.com/redis/redis",
status: "completed",
featured: false
}
]
},
// 首页配置
hero: {
backgroundImage: "/images/hero-bg.jpg",
quickLinks: [
{ name: "博客", href: "/blog", icon: "BookOpen" },
{ name: "随笔", href: "/thoughts", icon: "PenTool" },
{ name: "项目", href: "/projects", icon: "Code" },
{ name: "关于", href: "/about", icon: "User" },
],
},
// 博客配置
blog: {
// 分页配置
pagination: {
postsPerPage: 6, // 每页显示的博客文章数量
maxVisiblePages: 5, // 分页组件中最多显示的页码数量
},
// 首页配置
homepage: {
recentPostsCount: 5, // 首页显示的最新文章数量
},
// 其他博客相关配置
display: {
showExcerpt: true, // 是否显示文章摘要
excerptLength: 150, // 文章摘要长度
showReadTime: true, // 是否显示阅读时间
showTags: true, // 是否显示标签
maxTagsToShow: 3, // 最多显示的标签数量
},
},
// SEO配置
seo: {
keywords: [
"个人主页",
"后端开发",
"React",
"Next.js",
"TypeScript",
],
openGraph: {
type: "website",
locale: "zh_CN",
siteName: "个人主页",
},
// 图标配置
icons: {
favicon: "/favicon.ico",
},
},
// 分析工具
analytics: {
googleAnalyticsId: "G-XXXXXXX", // Google Analytics ID
},
// 主题配置
theme: {
colors: {
primary: "#3b82f6", // 主色调
secondary: "#1e293b", // 次要色调
},
fonts: {
sans: ["Inter", "Noto Sans SC", "sans-serif"],
mono: ["JetBrains Mono", "monospace"],
},
},
// 底部栏配置
footer: {
copyright: {
owner: "yourName", // 版权所有者
startYear: "2025", // 开始年份
showCurrentYear: true, // 是否显示当前年份
},
beian: { // 没有可不填
police: "沪公网安备31011500000000号", // 公安备案号
icp: "沪ICP备2025000000号", // ICP备案号
},
},
// 部署配置
deployment: {
baseUrl: "/homepage",
// 基础路径配置 - 总是填写你的仓库路径
// GitHub Pages 部署时通过 GITHUB_PAGES=true 环境变量启用此配置
// 自定义域名部署时不设置 GITHUB_PAGES 环境变量,会忽略此配置
},
};