Commit Graph

71 Commits

Author SHA1 Message Date
anime
3a16dadd76 feat&fix(支持私有页面的数据访问): 使用react-notion-x要求的方式进行NotionAPI的配置
(cherry picked from commit d5ae329e2c3a1e18b5fd5fc3507791be9da9b4ed)
2024-12-23 22:57:36 +08:00
tangly1024
e3e78b643b Update getPageProperties.js
Hotfix
2024-11-20 10:57:28 +08:00
tangly1024.com
8c07957f26 build fix 2024-11-20 10:42:32 +08:00
tangly1024.com
e5a848c585 修复文章前缀问题,支持空字符串 2024-11-13 11:16:55 +08:00
tangly1024.com
eed08777d1 代码缓存逻辑调整 2024-11-13 10:50:17 +08:00
tangly1024.com
1f255c5745 修复菜单自定义名的bug 2024-10-08 18:36:27 +08:00
tangly1024.com
3d68b35cb6 代码格式化 2024-09-27 16:11:23 +08:00
tangly1024.com
ea74dc3fae 修复配置了prefix后,部分页面无法打开的bug 2024-06-28 17:31:31 +08:00
tangly1024.com
550fabb967 修复第二页url 2024-06-27 09:38:42 +08:00
tangly1024.com
8f0ae9267a 修复外链编译打包问题 2024-06-26 11:12:38 +08:00
tangly1024.com
eff31009c7 fix 伪静态 index url 异常 2024-06-17 10:53:26 +08:00
tangly1024
30d3843b9e 多语言的小调整 2024-06-15 12:16:32 +08:00
tangly1024
19d9d896c4 {配置兼容性} 2024-06-15 10:34:55 +08:00
tangly1024.com
0a5c8c6c27 修复静态页面开启时,文章url前缀设为空无法访问的bug 2024-06-04 10:23:01 +08:00
GreyAir
86241e1525 添加页面可以隐藏评论的属性 2024-05-27 08:25:08 +00:00
tangly1024.com
517a967640 修复部分NOTION_CONFIG读取问题 2024-05-15 14:55:14 +08:00
tangly1024.com
c337c063be 新增映射支持: url 前缀 %category%中文分类名映射成英文 2024-05-13 11:36:53 +08:00
tangly1024
a5bab22409 url前缀 %category% 支持映射 2024-05-12 17:39:47 +08:00
tangly1024.com
0da9e605ec 优化:POST_URL_PREFIX 和 PSEUDO_STATIC支持在NOTION_CONFIG中配置 2024-05-10 18:23:27 +08:00
tangly1024.com
eb62cab885 slug 支持 %category% 变量 2024-05-08 16:43:24 +08:00
tangly1024.com
651f6370cf slug 链接调试 2024-05-08 16:39:31 +08:00
tangly1024.com
de0908ea94 slug 兼容性优化,支持用任意前缀访问文章不限于article 2024-05-08 15:13:12 +08:00
tangly1024.com
324516bef3 Notion bookmark图床 2024-04-29 14:21:58 +08:00
tangly1024.com
6fea7d3aba video-size 2024-04-15 14:47:36 +08:00
tangly1024.com
4d3b30b495 theme-game 2024-03-19 18:48:14 +08:00
tangly1024
444e236ca6 整理lib目录 2024-03-10 13:08:18 +08:00
tangly1024
ad24ea1f48 fix page-cover-missing 2024-01-30 22:33:05 +08:00
tangly1024.com
103643bfae Merge branch 'main' into pr/Olimiya/1723 2024-01-30 18:34:19 +08:00
tangly1024.com
3b81794558 fix: 修复部分文章无法加载的问题,原因是Notion API加载时block上限1000
修复思路是在加载所有文章时,会首先一次性加载数据库中所有block,此时因为上限1000会发生溢出。之后会读取所有page的IDs,然后逐个获取page对应的block。此时如果发现ID查找不到(说明发生了溢出),则再调用API去逐一获取这些溢出了的page。可能这不是最优解。
修改的代码包括:
1. getDataBaseInfoByNotionAPI中添加上述判断逻辑。
2. 修改getPageProperties函数签名,直接传入block对应的value,而不是block数组。
2024-01-30 18:33:56 +08:00
葉修齊
849e043103 fix bug: 自定义数据库type字段属性后无法正确生成未显式定义slug的文章的路径
处理URL之前已经调用过mapProperties(properties),使得字段属性值恢复到标准的英文了,不应当再与自定义配置值进行比对
2024-01-26 21:59:33 +08:00
tangly1024
ff552b7de4 从Notion表格读取配置信息 2023-10-30 22:39:06 +08:00
tangly1024
608cc8991b 多级slug-bug 2023-10-29 11:21:16 +08:00
tangly1024
dd5fbc0a46 修复二级菜单编译bug 2023-08-03 21:26:46 +08:00
tangly1024
7841b556d6 lastEditTime 字段名调整;修改algolia逻辑 2023-07-29 16:38:49 +08:00
tangly1024.com
d80da58f1f Merge branch 'main' into feat/algolia 2023-07-24 15:14:34 +08:00
tangly1024.com
46945c872c fix pseudo static password 2023-07-13 09:58:17 +08:00
tangly1024.com
aa5373d2ff algolia 搜索相关 2023-07-12 15:15:32 +08:00
tangly1024
dd6dc5a93a fix/slug-undefined-html 2023-07-07 21:10:37 +08:00
tangly1024.com
780bb26e5e hotfix.修复无法用密码访问的bug 2023-07-06 10:35:24 +08:00
tangly1024.com
7dfe08838a 修复日期文章格式的bug 2023-07-05 12:19:32 +08:00
tangly1024.com
0f7e5f2fb9 fix date 2023-06-30 14:28:15 +08:00
tangly1024
8103e23aac hotfix: sort by date 2023-06-29 23:26:06 +08:00
tangly1024.com
9ac2bbb180 调整文章日期显示 2023-06-29 12:44:46 +08:00
tangly1024
437f969115 压缩封面图 2023-06-18 11:12:54 +08:00
tangly1024
d1a4e8e9b9 post-url 2023-06-06 23:24:18 +08:00
emengweb
5ec7862a33 增加对notion.so自定义反代域名的配置支持 2023-04-24 10:53:44 +00:00
sy
b49686bb03 chore: use padStart on month/date to keep a better output format 2023-03-13 20:24:34 +08:00
sy
4020cd5d48 feat(post): support customize post's permalink format 2023-03-13 01:30:31 +08:00
tangly1024.com
280723ccc0 折叠菜单 2023-03-09 15:29:22 +08:00
tangly1024.com
556c518ea7 theme-simple & menun 2023-03-08 20:10:23 +08:00