Skip to content

Releases: tangly1024/NotionNext

v4.1.0

10 Nov 10:11
1965fff
Compare
Choose a tag to compare

提示

请谨慎更新该版本!!
4.1相比4.0有大量改动,合并将会出现无法预估的冲突,建议备份好您的代码分支,代码配置。可通过新建一个分支的方式来保存代码。

What's Changed

4.1 主要特性

  1. 开发相关

    • 新增siteConfig函数,可直接从Notion中读取配置,并且支持传入默认值

      /**
       * 读取配置顺序
       * 1. 优先读取NotionConfig表
       * 2. 其次读取环境变量
       * 3. 再读取blog.config.js / 或各个主题的CONFIG文件
       * @param {*} key ; 参数名
       * @param {*} extendConfig ; 参考配置对象{key:val},如果notion中找不到优先尝试在这里面查找
       * @param {*} defaultVal ; 参数不存在默认返回值
       * @returns
       */
      export const siteConfig = (key, defaultVal = null, extendConfig) => {
      }
  2. 使用相关

    • 绝大部分配置支持在Notion中设置,减少对blog.config.js和vercel环境变量的配置

    image

    💡 如何使用config文档,请参考 《[[站点配置-配置入门](https://docs.tangly1024.com/article/how-to-config-notion-next)](https://docs.tangly1024.com/article/how-to-config-notion-next)》

v4.1.0

  1. 配置支持读取Notion中的Config文档;省去修改代码和修改环境变量的麻烦。
  2. 网页上的切换主题按钮,样式微调。
    Full Changelog: v4.0.18...v4.1.0

v4.0.18

01 Nov 14:05
Compare
Choose a tag to compare

What's Changed

  • 折叠代码块默认展开状态 by @tangly1024 in #1607
  • [fix] 文章不存在封面的时候,不使用默认站点封面,导致不显示封面的问题 by @expoli in #1600
  • 博客封面随机图片支持 by @tangly1024 in #1608

Full Changelog: v4.0.17...v4.0.18

v4.0.17

29 Oct 05:33
Compare
Choose a tag to compare

What's Changed

  • 修复Notion上传视频无法播放
  • Fix: 修复 Medium 主题首页文章列表无封面图片时动画异常 by @Femoon in #1579
  • 多级slug-bug by @tangly1024 in #1599

New Contributors

Full Changelog: v4.0.16...v4.0.17

v4.0.16

18 Oct 09:35
Compare
Choose a tag to compare

What's Changed

  • 新主题add theme nav & add pageIcon support of @lib/getNotionData by @emengweb in #1563
  • style(heo): 修复在较小屏幕尺寸时,文章宽度样式问题 by @real-jacket in #1513
  • HEO 404页面深色模式 by @tangly1024 in #1572

Full Changelog: v4.0.15...v4.0.16

v4.0.15

07 Sep 08:14
e3a2728
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.14...v4.0.15

v4.0.14

02 Sep 04:56
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.13...v4.0.14

v4.0.13

15 Aug 04:24
ff30891
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.12...v4.0.13

v4.0.12

07 Aug 10:28
2749b73
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.11...v4.0.12

v4.0.11

02 Aug 08:42
Compare
Choose a tag to compare

What's Changed

  • feat: 新增页面防复制功能 by @LooseLi in #1381
  • fb-messenger逻辑微调,用户点击后即刻弹出窗口
  • fix/menu-link-blank 调整外链菜单,使用新窗口打开 by @tangly1024 in #1394
  • 修复next主题分页导航bug by @tangly1024 in #1395

Full Changelog: v4.0.10...v4.0.11

v4.0.10

01 Aug 14:36
ff2b10a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.9...v4.0.10