Skip to content

Repository files navigation

Human Nature Explained

Understanding Human Nature, Simply Explained

项目简介

HumanNatureExplained.org 是一个人性主题内容网站,用简单语言解释复杂的人性主题,基于心理学研究。

技术栈

  • 框架:Next.js 14+ (App Router)
  • 语言:TypeScript
  • 样式:Tailwind CSS
  • 内容:Markdown (remark + rehype)

开发

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建
npm run build

# 启动生产服务器
npm start

项目结构

├── app/              # Next.js App Router 页面
├── components/       # React 组件
├── lib/              # 工具函数
├── content/          # Markdown 内容
│   ├── categories/   # 主分类说明
│   ├── subcategories/ # 子分类说明
│   └── topics/       # 文章(按分类组织)
└── public/           # 静态资源

内容组织

  • 8个主分类:Human Behavior, Cognitive Biases, Relationships 等
  • 32个子分类:每个主分类4个子分类
  • 文章存储:按分类组织 content/topics/{category}/{subcategory}/{slug}.md

命名规范

  • TypeScript 接口:Article
  • 目录结构:topics/
  • 用户界面:Topics
  • URL路径:不使用核心词(如 /why-do-people-lie/)

品牌色彩

  • 主色调:深蓝色 #1e3a5f
  • 辅助色:橙色 #e67e22

最后更新:2024年

Releases

Packages

Contributors

Languages