Skip to content

Commit 27f7ded

Browse files
committed
Merge opc theme
2 parents 026ce1c + 9f49d62 commit 27f7ded

21 files changed

Lines changed: 644 additions & 19 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ NotionNext 是一个基于 **Next.js + Notion API** 的开源站点系统。你
6161

6262
- **不换写作工具**:文章、分类、标签、封面、菜单仍在 Notion 中维护。
6363
- **上线路径短**:复制 Notion 模板、Fork 仓库、连接 Vercel,即可部署。
64-
- **主题选择多**:内置 25 个主题,覆盖博客、文档、作品集、官网、相册、导航站等场景。
64+
- **主题选择多**:内置 26 个主题,覆盖博客、文档、作品集、官网、相册、导航站等场景。
6565
- **适合长期运营**:支持独立域名、SEO、Sitemap、RSS、评论、统计、搜索、广告和邮件订阅。
6666
- **开源可控**:源码、配置和主题都在自己的仓库里,后续可以继续二次开发。
6767
- **数据链路清晰**:Notion 负责内容沉淀,站点负责展示和分发,后续可迁移到 Markdown 或其他系统。
@@ -80,14 +80,14 @@ NotionNext 是一个基于 **Next.js + Notion API** 的开源站点系统。你
8080
## 主题与预览
8181

8282
- 在线切换主题:[preview.tangly1024.com](https://preview.tangly1024.com/)
83-
- 25 个内置主题:[主题全览](https://notionnext.tangly1024.com/user-guide/themes/THEMES_CATALOG)
83+
- 26 个内置主题:[主题全览](https://notionnext.tangly1024.com/user-guide/themes/THEMES_CATALOG)
8484
- 仓库内主题文档:[docs/user-guide/themes/](./docs/user-guide/themes/)
8585

8686
| 场景 | 优先看 |
8787
| --- | --- |
8888
| 个人博客 | `simple``hexo``nobelium``typography` |
8989
| 文档 / 知识库 | `gitbook``claude``thoughtlite` |
90-
| 作品集 / 个人品牌 | `proxio``starter``landing` |
90+
| 作品集 / 个人品牌 | `opc``proxio``starter``landing` |
9191
| 产品官网 | `starter``landing``commerce` |
9292
| 图片 / 摄影 | `photo``plog``magzine` |
9393
| 导航站 | `nav` |
@@ -129,7 +129,7 @@ yarn dev
129129
| 在线文档站 | [notionnext.tangly1024.com](https://notionnext.tangly1024.com) |
130130
| 新手入口 | [从这里开始](https://notionnext.tangly1024.com/user-guide/start-here) |
131131
| 配置索引 | [全站功能与配置索引](https://notionnext.tangly1024.com/user-guide/reference/features) |
132-
| 主题说明 | [25 个主题说明](https://notionnext.tangly1024.com/user-guide/themes/THEMES_CATALOG) |
132+
| 主题说明 | [26 个主题说明](https://notionnext.tangly1024.com/user-guide/themes/THEMES_CATALOG) |
133133
| 文档源码 | [docs/](./docs/) |
134134
| 旧版手册 | [docs.tangly1024.com](https://docs.tangly1024.com/) |
135135

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To help new contributors get started quickly, the project keeps docs bilingual w
8080
## Themes & preview
8181

8282
- **Live theme switcher**: [preview.tangly1024.com](https://preview.tangly1024.com/)
83-
- **All 25 themes**: [THEMES_CATALOG.md](./docs/user-guide/themes/THEMES_CATALOG.md)
83+
- **All 26 themes**: [THEMES_CATALOG.md](./docs/user-guide/themes/THEMES_CATALOG.md)
8484
- New theme? See [CONTRIBUTING.md](./CONTRIBUTING.md) and [Theme Migration Guide](./docs/developer/THEME_MIGRATION_GUIDE.md)
8585

8686
## Acknowledgements

conf/themeColorPalette.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ const THEME_COLOR_DEFAULTS = {
7171
nav: { PRIMARY: '#000000', BG: '#fbfbfb', TEXT: '#8c8c8c' },
7272
next: { PRIMARY: '#4e80ee', BG: '#eeedee' },
7373
nobelium: { PRIMARY: '#6b7280' },
74+
opc: {
75+
PRIMARY: '#2563eb',
76+
BG: '#f8fafc',
77+
CARD: '#ffffff',
78+
TEXT: '#111827',
79+
TEXT_SECONDARY: '#64748b',
80+
BORDER: '#e2e8f0',
81+
PRIMARY_DARK: '#60a5fa',
82+
BG_DARK: '#020617',
83+
CARD_DARK: '#0f172a',
84+
TEXT_DARK: '#f8fafc',
85+
TEXT_SECONDARY_DARK: '#94a3b8',
86+
BORDER_DARK: '#1e293b'
87+
},
7488
photo: { PRIMARY: '#2563eb', PRIMARY_DARK: '#ca8a04' },
7589
plog: { PRIMARY: '#1d4ed8' },
7690
proxio: { PRIMARY: '#3758f9', BG: '#ffffff', BG_DARK: '#121212' },

conf/themeSwitch.manifest.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,27 @@ export const THEME_SWITCH_MANIFEST = {
117117
{ key: 'NOBELIUM_COLOR_PRIMARY', cssVar: '--nobelium-color-primary', label: '主色', defaultValue: '#6b7280' }
118118
]
119119
},
120+
opc: {
121+
name: 'Opc',
122+
summary: '个人主页与一人公司入口,聚焦项目和博客两个主路径。',
123+
settings: [
124+
{ key: 'OPC_NAME', label: '顶部名称', type: 'text', defaultValue: 'Tangly · 个人公司' },
125+
{ key: 'OPC_KICKER', label: '首屏标签', type: 'text', defaultValue: '一人公司 / 独立开发者' },
126+
{ key: 'OPC_TITLE', label: '主标题', type: 'text', defaultValue: 'Tangly1024' },
127+
{ key: 'OPC_SUBTITLE', label: '副标题', type: 'text', defaultValue: '一人公司的 AI 工作流实验室' },
128+
{ key: 'OPC_DESCRIPTION', label: '主介绍', type: 'text', defaultValue: '我用多个 AI 组织,运营一间一人公司的内容、产品和交易实验室。这里连接 NotionNext、长期记录和公开实验。' },
129+
{ key: 'OPC_PRIMARY_TEXT', label: '主按钮文字', type: 'text', defaultValue: '查看 NotionNext' },
130+
{ key: 'OPC_PRIMARY_URL', label: '主按钮链接', type: 'text', defaultValue: 'https://preview.tangly1024.com' },
131+
{ key: 'OPC_SECONDARY_TEXT', label: '副按钮文字', type: 'text', defaultValue: '阅读长期记录' },
132+
{ key: 'OPC_SECONDARY_URL', label: '副按钮链接', type: 'text', defaultValue: 'https://blog.tangly1024.com' },
133+
{ key: 'OPC_STATUS_TEXT', label: '状态标签', type: 'text', defaultValue: '持续公开构建' },
134+
{ key: 'OPC_CARD_TITLE', label: '卡片标题', type: 'text', defaultValue: '一人公司的 AI 工作流' },
135+
{ key: 'OPC_CARD_DESCRIPTION', label: '卡片说明', type: 'text', defaultValue: '我把不同方向拆成多个 AI 公司组织,让它们按目标、反馈和节奏自动协作;人只负责监督结果,并在关键时刻修正方向。' },
136+
{ key: 'OPC_NOW_TITLE', label: '近况标题', type: 'text', defaultValue: '最近正在做什么' },
137+
{ key: 'OPC_NOW_DESCRIPTION', label: '近况说明', type: 'text', defaultValue: '多个 AI 公司组织正在并行工作,把内容生产、产品原型和策略研究拆成可持续推进的任务流。' },
138+
{ key: 'OPC_NOW_ITEMS', label: '近况标签', type: 'text', defaultValue: '游戏,小说,短剧,工具产品,流量媒体,AI企业工作流,量化交易' }
139+
]
140+
},
120141
plog: {
121142
name: 'Plog',
122143
summary: '偏图片与轻量图文化展示。',
@@ -328,6 +349,7 @@ const THEME_CONFIGS = {
328349
nav: navConfig,
329350
next: nextConfig,
330351
nobelium: nobeliumConfig,
352+
opc: opcConfig,
331353
photo: photoConfig,
332354
plog: plogConfig,
333355
proxio: proxioConfig,
@@ -569,6 +591,7 @@ import movieConfig from '@/themes/movie/config'
569591
import navConfig from '@/themes/nav/config'
570592
import nextConfig from '@/themes/next/config'
571593
import nobeliumConfig from '@/themes/nobelium/config'
594+
import opcConfig from '@/themes/opc/config'
572595
import photoConfig from '@/themes/photo/config'
573596
import plogConfig from '@/themes/plog/config'
574597
import proxioConfig from '@/themes/proxio/config'

docs/DOCUMENTATION_POLICY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| --- | --- |
1313
| [`docs/user-guide/`](./user-guide/) | 部署、配置、Notion 数据库、菜单、升级等**用户教程**(从官方站点迁移并持续更新) |
1414
| [`docs/user-guide/reference/`](./user-guide/reference/) | **4.9.x 参考手册**:全站配置索引、Notion 新能力(与 `conf/` 同步维护) |
15-
| [`docs/user-guide/themes/THEMES_CATALOG.md`](./user-guide/themes/THEMES_CATALOG.md) | **25 个内置主题**全表与选型 |
15+
| [`docs/user-guide/themes/THEMES_CATALOG.md`](./user-guide/themes/THEMES_CATALOG.md) | **26 个内置主题**全表与选型 |
1616
| [`docs/developer/`](./developer/) | 架构、贡献流程、维护手册、主题迁移、RFC 等进阶文档(在线站可见) |
1717
| [`docs/developer/themes/`](./developer/themes/) | 主题实现长文、迁移计划、上游来源与许可证说明 |
1818

docs/developer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
## 主题开发者文档
3333

34-
站长向 25 篇说明在 [`../user-guide/themes/`](../user-guide/themes/README.md)
34+
站长向 26 篇说明在 [`../user-guide/themes/`](../user-guide/themes/README.md)
3535

3636
| 目录 | 说明 |
3737
| --- | --- |

docs/developer/themes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
中文 | [English](./README.en.md)
44

55
本目录用于**开发者向**主题说明(架构、全局改动、迁移计划)及英文文档。
6-
**站长向统一入口**[user-guide/themes/README.md](../../user-guide/themes/README.md)25 个主题各一篇 `<id>.md`)。
6+
**站长向统一入口**[user-guide/themes/README.md](../../user-guide/themes/README.md)26 个主题各一篇 `<id>.md`)。
77

88
## 文档分工
99

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ features:
2424
details: 文章、分类、标签、菜单和页面仍在 Notion 中维护,网站自动读取并渲染。
2525
- title: 从模板到上线
2626
details: 复制 Notion 模板、Fork 仓库、连接 Vercel,新手也能按步骤完成上线。
27-
- title: 25 个内置主题
27+
- title: 26 个内置主题
2828
details: 覆盖博客、文档、作品集、官网、相册、导航站和视觉展示等场景。
2929
- title: 面向长期运营
3030
details: 支持独立域名、SEO、Sitemap、RSS、评论、统计、搜索、广告和邮件订阅。
43.3 KB
Loading

docs/user-guide/MAINTENANCE_WORKFLOW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
| 站点配置、URL、搜索 | `docs/user-guide/config/` | 功能名,如 `url-customize.md` |
2525
| Notion 使用技巧 | `docs/user-guide/notion/` | |
2626
| 版本与更新说明 | `docs/user-guide/changelog/` | |
27-
| 主题(站长向) | `docs/user-guide/themes/<id>.md` | 25 篇;`generate-theme-user-docs.mjs` 刷新配置表;Proxio/Heo 含合并专题 |
27+
| 主题(站长向) | `docs/user-guide/themes/<id>.md` | 26 篇;`generate-theme-user-docs.mjs` 刷新配置表;Proxio/Heo 含合并专题 |
2828
| 主题(开发向) | `docs/developer/themes/` | 仅 Claude、Endspace 等全局改动长篇;勿与站长文重复 |
2929
| 4.9.x 配置 / Notion 能力 | `docs/user-guide/reference/` | `features.md``notion-4x.md`(改 `conf/` 后必同步) |
3030
| 统计 / 评论 / 挂件 | `analytics/``comments/``plugins/` | 一篇一插件或一总览 |

0 commit comments

Comments
 (0)