Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/user-guide/changelog/latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

### Notion 内嵌子页面 URL

- 新增可选配置,推荐在 Notion Config 中添加 `INNER_PAGE_URL_PARENT_PATH=true`;也可以在部署平台添加 `NEXT_PUBLIC_INNER_PAGE_URL_PARENT_PATH=true`。开启后,未收录到数据库的 Notion 内嵌子页面 URL 会跟随当前文章路径,例如 `/article/fpga-studying-notes/{pageId}`。
- 新增可选配置,推荐在 Notion Config 中添加 `INNER_PAGE_URL_PARENT_PATH=true`。
- 也可以在部署平台添加 `NEXT_PUBLIC_INNER_PAGE_URL_PARENT_PATH=true`。开启后,未收录到数据库的 Notion 内嵌子页面 URL 会跟随当前文章路径,例如 `/article/fpga-studying-notes/{pageId}`。
- 已收录到 NotionNext 数据库、并拥有明确 `slug / href` 的页面仍优先跳转自己的正式地址,避免影响 sitemap、RSS、站内搜索和旧链接兼容。
- 该能力只优化访问路径和层级表达;未收录子页面不会因此自动进入 sitemap、RSS 或搜索索引。需要 SEO 收录的页面仍建议加入主数据库并配置明确 `slug`。

Expand Down Expand Up @@ -42,7 +43,8 @@
### 升级说明

- 普通 Vercel / Netlify / Cloudflare Pages / Docker 站点:同步最新 `main` 后重新部署即可。
- 如果要启用内嵌子页面父路径 URL,推荐在 Notion Config 添加 `INNER_PAGE_URL_PARENT_PATH=true`;也可以在部署平台添加 `NEXT_PUBLIC_INNER_PAGE_URL_PARENT_PATH=true` 后重新部署。
- 如果要启用内嵌子页面父路径 URL,推荐在 Notion Config 添加 `INNER_PAGE_URL_PARENT_PATH=true`。
- 也可以在部署平台添加 `NEXT_PUBLIC_INNER_PAGE_URL_PARENT_PATH=true` 后重新部署。
- 如果你依赖 Docker 镜像,请等待本版本 GitHub Release 对应的 GHCR 镜像发布完成后再拉取。

### GitHub Release
Expand Down
7 changes: 4 additions & 3 deletions docs/user-guide/config/url-customize.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ Notion 页面中可以继续嵌套子页面。默认情况下,NotionNext 会

如果希望未收录的内嵌子页面 URL 也体现父级文章层级,推荐直接在 Notion Config 配置中心添加一行:

| Key | Value | 说明 |
| --- | --- | --- |
| `INNER_PAGE_URL_PARENT_PATH` | `true` | 未收录内嵌子页面 URL 跟随父级文章路径 |
```txt
Key: INNER_PAGE_URL_PARENT_PATH
Value: true
```

保存 Notion Config 后重新部署或等待站点重新读取配置即可生效。该配置会优先于部署平台环境变量,适合不想修改代码或部署配置的站点。

Expand Down
7 changes: 4 additions & 3 deletions docs/user-guide/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ NotionNext教程

如果你希望 Notion 文章中的未收录内嵌子页面 URL 跟随父级文章路径,推荐在 Notion Config 配置中心添加:

| Key | Value |
| --- | --- |
| `INNER_PAGE_URL_PARENT_PATH` | `true` |
```txt
Key: INNER_PAGE_URL_PARENT_PATH
Value: true
```

该方式不需要修改代码。也可以在部署平台添加环境变量:

Expand Down
Loading