Skip to content
View keyneszeng's full-sized avatar
🤒
Out sick
🤒
Out sick

Block or report keyneszeng

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
keyneszeng/README.md

清晨的个人博客

🌅 一个干净、现代的个人博客网站,支持深色/浅色模式切换。

功能特性

  • ✨ 极简现代化设计,专注阅读体验
  • 🌙 深色/浅色主题一键切换(自动保存偏好)
  • 📱 响应式布局,完美适配手机、平板和桌面
  • 🏷️ 文章标签筛选与分页
  • 📖 文章详情页带上下篇导航
  • 📝 数据驱动的前端架构,无需后端即可运行

快速启动

方式一:直接用浏览器打开

# 进入项目目录
cd /Users/mac/personal-blog

# 直接打开首页
open index.html

方式二:使用本地服务器(推荐)

cd /Users/mac/personal-blog

# 使用 Python 内置 HTTP 服务器
python3 -m http.server 3000

# 或使用 Node.js 的 serve 包
# npx serve .

然后打开浏览器访问 http://localhost:3000

项目结构

personal-blog/
├── index.html          # 首页
├── blog.html           # 文章列表页
├── post.html           # 文章详情页(动态渲染)
├── about.html          # 关于页面
├── css/
│   └── style.css       # 全局样式
├── js/
│   ├── posts.js        # 文章数据 + 通用渲染函数
│   ├── main.js         # 全局功能(主题、菜单)
│   ├── blog.js         # 列表页逻辑(筛选、分页)
│   └── post.js         # 详情页逻辑
└── README.md

自定义

添加新文章

编辑 js/posts.js,在 postsData 数组中添加新对象:

{
  id: 'your-post-slug',
  title: '文章标题',
  date: '2026-06-20',
  tags: ['技术', '前端'],
  excerpt: '文章摘要...',
  content: `
<p>文章内容...</p>
  `.trim()
}

修改个人信息

编辑 about.html 中的姓名、技能标签和联系方式。

技术栈

  • 纯 HTML5 + CSS3 + JavaScript(零依赖)
  • CSS 自定义属性实现主题切换
  • 原生 JS 实现 SPA 式页面路由
  • 无框架,开箱即用

License

MIT

Popular repositories Loading

  1. keyneszeng keyneszeng Public

    Config files for my GitHub profile.

    JavaScript 1

  2. sismo-hub sismo-hub Public

    Forked from sismo-core/sismo-hub

    TypeScript 1

  3. zksync-era zksync-era Public

    Forked from matter-labs/zksync-era

    zkSync era

    Rust 1

  4. zama-ai-fhevm zama-ai-fhevm Public

    Forked from zama-ai/fhevm-solidity

    A Solidity library for interacting with an fhEVM blockchain.

    TypeScript 1

  5. fuel-core fuel-core Public

    Forked from FuelLabs/fuel-core

    Rust full node implementation of the Fuel v2 protocol.

    Rust 1

  6. awesome-zama awesome-zama Public

    Forked from zama-ai/awesome-zama

    A curated list of amazing Fully Homomorphic Encryption (FHE) resources created by the team at Zama.

    1