Giter VIP home page Giter VIP logo

tangly1024 / notionnext Goto Github PK

View Code? Open in Web Editor NEW
5.9K 37.0 8.2K 32.69 MB

使用 NextJS + Notion API 实现的,支持多种部署方案的静态博客,无需服务器、零门槛搭建网站,为Notion和所有创作者设计。 (A static blog built with NextJS and Notion API, supporting multiple deployment options. No server required, zero threshold to set up a website. Designed for Notion and all creators.)

Home Page: https://tangly1024.com

License: MIT License

JavaScript 97.13% CSS 2.47% Dockerfile 0.04% TypeScript 0.03% Python 0.17% HTML 0.16%
tailwindcss vercel nextjs react blog notion zeabur

notionnext's Introduction

NotionNext

中文文档 | README in English


一个使用 NextJS + Notion API 实现的,部署在 Vercel 上的静态博客系统。为Notion和所有创作者设计。

预览效果

在线演示:https://preview.tangly1024.com/ ,项目支持多主题切换,没找到喜欢的主题?贡献一个吧~

Next Medium Hexo Fukasawa
预览NEXT 预览MEDIUM 预览HEXO 预览FUKASAWA

我要如何开始?

只需几分钟即可搭建您的个人站点:

致谢

感谢Craig Hart发起的Nobelium项目

Craig Hart
Craig Hart

贡献者

tangly1024
tangly1024

🎫 🔧 🐛
uWayLu
uWayLu

🔧 🐛
txs
txs

🔧 🐛
yuzhanglong
yuzhanglong

🔧 🐛
Hscpro
Hscpro

🔧 🐛
JensonMiao
JensonMiao

🔧 🐛
haixin1225
haixin1225

🔧 🐛
mouyase
mouyase

🔧 🐛
qfdk
qfdk

🔧 🐛
ifyz
ifyz

🔧 🐛
Liqun Zhao
Liqun Zhao

🔧 🐛
Ylarod
Ylarod

🔧 🐛
Etherrreal.
Etherrreal.

🔧 🐛
Joshua Astray
Joshua Astray

🔧 🐛
Vixcity
Vixcity

🔧 🐛
ipatpat
ipatpat

🔧 🐛
xloong
xloong

🔧 🐛
expoli
expoli

🔧 🐛
SuperHuangXu
bUBBLE

🔧 🐛
Pylogmon
派了个萌

🔧 🐛
SkysCrystal
Simon Shi

🔧 🐛
S.Y. Lee
S.Y. Lee

🔧 🐛
fighting-buf
fighting-buf

🔧 🐛
cliouo
cliouo

🔧 🐛
Sude Akgün
Sude Akgün

🔧 🐛
Ray
Ray

🔧 🐛
Hongzzz
Hongzzz

🔧 🐛
RedhairHambagu
RedhairHambagu

🔧 🐛
Allen
Allen

🔧 🐛
zdf1230
zdf

🔧 🐛
emengweb
emengweb

🔧 🐛
kitety
kitety

🔧 🐛
 Jiaxin Peng
Jiaxin Peng

🔧 🐛

引用技术

🔗 友情链接

  • Elog Markdown 批量导出工具、开放式跨平台博客解决方案,随意组合写作平台(语雀/Notion/FlowUs/飞书)和博客平台(Hexo/Vitepress/Halo/Confluence/WordPress等)

License

The MIT License.

notionnext's People

Contributors

1208nn avatar dependabot[bot] avatar emengweb avatar expoli avatar ghlerrix avatar hscpro avatar jiashu1024 avatar jxpeng98 avatar kazoottt avatar li-major avatar liboq avatar lifeafter619 avatar liqun98 avatar looseli avatar lxw15337674 avatar mouyase avatar olimiya avatar real-jacket avatar rylanbot avatar sebastian0619 avatar siygle avatar superhuangxu avatar tangly1024 avatar tdouguo avatar txs avatar velor2012 avatar vixcity avatar yiguan-z avatar ykxkykx avatar zdf1230 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notionnext's Issues

更新后部署失败

原本一直是正常的,最近一次拉取更新,vercel部署就报错了,如下:
Error occurred prerendering page "/article/snow". Read more: https://nextjs.org/docs/messages/prerender-error
13:12:25.190 | TypeError: Cannot read property 'length' of undefined
13:12:25.190 | at getRecommendPost (/vercel/path0/.next/server/pages/article/[slug].js:138:40)
13:12:25.191 | at getStaticProps (/vercel/path0/.next/server/pages/article/[slug].js:107:28)
13:12:25.191 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
13:12:25.191 | at async renderToHTML (/vercel/path0/node_modules/next/dist/server/render.js:465:20)
13:12:25.193 | at async /vercel/path0/node_modules/next/dist/export/worker.js:269:36
13:12:25.193 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:75:20)

请问如何解决。

没有找到文章

感谢您的项目,但我在尝试过程中遇到了问题

按照快速开始的方法进行部署,我只修改了/blog.config.js中的process.env.NOTION_PAGE_ID,并在部署时在vercel中也添加了一条NOTION_PAGE_ID环境变量,但是我部署好的博客显示“没有找到文章”。

这是我部署后的demo:https://myyy-bice.vercel.app/

这是我的notion页面:https://heliotrope-roarer-6d6.notion.site/6eb136d8df914f24b8b399ad9003abda?v=6094ea764fde4b1caa5ca83b6017877d

这是我fork后的repository:https://github.com/ByeYesterday/NotionNext

bug: 密码框一闪而过

没有配置密码的博客刷新时可能会出现密码框一闪而过的现象,影响体验,可以优化~
image

有个按键没有用

主题很漂亮,刚刚去作者的博客看了下,发现中间那个聊天气泡按钮点了没用
image

评论按钮bug

昨晚拉了3.0版本,评论按钮还是有BUG,点击评论按钮滚动到文章中间了,和昨天一点点往下蹭不一样了。

还是昨天的设备:
笔记本联想昭阳E42 14英寸,19201080分辨率,缩放与布局125%,win10 64位 专业版 21H2,Edge 最新版 100.0.1185.29 (正式版本) (64 位)
台式机 1920
1080,无缩放, win10 64位专业版 21H2,Edge 最新版 100.0.1185.29 (正式版本) (64 位)

[代码块]部分语言代码块无法高亮

Describe the bug
C++和C#均无法高亮, 其他语言我测试了C, Bash, Go, Java, CSS均可正常高亮, 猜测为特殊符号+#导致

To Reproduce
建立了一个测试上述语言高亮的页面
分别展示了notion中的高亮效果和网页高亮效果

Expected behavior
正常高亮

Screenshots
image
image

Platform:

  • OS: Win11
  • Browser Chrome
  • Version 100.0.4896.75(64-bit)

Additional context

[bug]几处样式问题及bug

项目真的很不错,感谢大佬分享出来这么好的东西👍
我部署的实例 https://oblog.vercel.app/

这里技术分享和发布日期下面的虚线感觉有点违和,有没有考虑去掉它呢😁。
屏幕截图 2022-04-10 162225

hexo主题下面页数翻到最后一页,下面页码会消失。
屏幕截图 2022-04-10 162304

Next主题我开了显示首页大图,但是部署完是黑屏,好像没有读取/public/bg_image.jpg
435435

fukasawa主题左边有搜索栏了,感觉归档下面那个搜索就不用做了吧,而且点击”搜索“这两个字之后会显示上下两排一样的文章。
屏幕截图 2022-04-10 165214

切换至 fukasawa 主题时部署至 vercel 错误

vercel报错如下

[21:34:50.021] Cloning github.com/flottant/NotionNext (Branch: main, Commit: 36da804)
[21:34:50.428] Cloning completed: 406.739ms
[21:34:50.812] Installing build runtime...
[21:34:54.154] Build runtime installed: 3.341s
[21:34:54.885] Looking up build cache...
[21:34:58.137] Build cache downloaded [61.47 MB]: 2931.458ms
[21:34:58.335] Installing dependencies...
[21:34:58.585] yarn install v1.22.17
[21:34:58.631] info No lockfile found.
[21:34:58.641] [1/4] Resolving packages...
[21:35:12.322] [2/4] Fetching packages...
[21:35:28.153] [3/4] Linking dependencies...
[21:35:28.155] warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || 15.x.x".
[21:35:28.155] warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || 15.x.x".
[21:35:28.156] warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0".
[21:35:28.157] warning "react-notion-x > [email protected]" has unmet peer dependency "@babel/runtime@>=7".
[21:35:28.157] warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^15 || ^16".
[21:35:28.157] warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^15 || ^16".
[21:35:28.157] warning "react-notion-x > react-pdf > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[21:35:28.161] warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[21:35:38.012] [4/4] Building fresh packages...
[21:35:38.330] success Saved lockfile.
[21:35:38.336] Done in 39.76s.
[21:35:38.374] Detected Next.js version: 12.1.5
[21:35:38.375] Running "yarn run build"
[21:35:38.649] yarn run v1.22.17
[21:35:38.692] $ next build && next-sitemap --config next-sitemap.config.js
[21:35:39.378] info  - Checking validity of types...
[21:35:41.666] info  - Creating an optimized production build...
[21:36:06.087] info  - Compiled successfully
[21:36:06.087] info  - Collecting page data...
[21:36:06.738] [请求API]: from:slug-paths id:a152bc04c11f401e9d11276673f010cd
[21:36:06.758] [请求API]: from:slug-paths id:a152bc04c11f401e9d11276673f010cd
[21:36:06.774] [请求API]: from:category-paths id:a152bc04c11f401e9d11276673f010cd
[21:36:07.145] [请求成功] from:slug-paths id:a152bc04c11f401e9d11276673f010cd
[21:36:07.164] [请求成功] from:slug-paths id:a152bc04c11f401e9d11276673f010cd
[21:36:07.196] [请求缓存]: from:page-paths root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.204] [请求缓存]: from:tag-static-path root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.221] [请求成功] from:category-paths id:a152bc04c11f401e9d11276673f010cd
[21:36:07.282] info  - Generating static pages (0/24)
[21:36:07.503] [请求缓存]: from:archive-index root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.514] [请求缓存]: from:category-index-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.523] 
[21:36:07.523] Error occurred prerendering page "/[slug]". Read more: https://nextjs.org/docs/messages/prerender-error
[21:36:07.523] TypeError: Cannot read property 'description' of undefined
[21:36:07.523]     at AsideLeft (/vercel/path0/.next/server/chunks/399.js:3175:30)
[21:36:07.523]     at d (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
[21:36:07.523]     at bb (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
[21:36:07.523]     at a.b.render (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
[21:36:07.523]     at a.b.read (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
[21:36:07.523]     at Object.exports.renderToString (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
[21:36:07.523]     at Object.renderPage (/vercel/path0/node_modules/next/dist/server/render.js:789:45)
[21:36:07.523]     at Object.defaultGetInitialProps (/vercel/path0/node_modules/next/dist/server/render.js:393:51)
[21:36:07.523]     at Function.getInitialProps (/vercel/path0/.next/server/chunks/859.js:547:20)
[21:36:07.524]     at Function.getInitialProps (/vercel/path0/.next/server/pages/_document.js:153:61)
[21:36:07.531] [请求缓存]: from:category-index-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.557] [请求缓存]: from:index root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.580] [请求缓存]: from:search-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.580] info  - Generating static pages (6/24)
[21:36:07.581] 
[21:36:07.581] Error occurred prerendering page "/search/[keyword]". Read more: https://nextjs.org/docs/messages/prerender-error
[21:36:07.581] TypeError: Cannot read property 'description' of undefined
[21:36:07.582]     at AsideLeft (/vercel/path0/.next/server/chunks/399.js:3175:30)
[21:36:07.582]     at d (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
[21:36:07.582]     at bb (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
[21:36:07.582]     at a.b.render (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
[21:36:07.584]     at a.b.read (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
[21:36:07.584]     at Object.exports.renderToString (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
[21:36:07.584]     at Object.renderPage (/vercel/path0/node_modules/next/dist/server/render.js:789:45)
[21:36:07.584]     at Object.defaultGetInitialProps (/vercel/path0/node_modules/next/dist/server/render.js:393:51)
[21:36:07.584]     at Function.getInitialProps (/vercel/path0/.next/server/chunks/859.js:547:20)
[21:36:07.585]     at Function.getInitialProps (/vercel/path0/.next/server/pages/_document.js:153:61)
[21:36:07.585] [请求缓存]: from:tag-index-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.585] 
[21:36:07.586] Error occurred prerendering page "/article/[slug]". Read more: https://nextjs.org/docs/messages/prerender-error
[21:36:07.586] TypeError: Cannot read property 'description' of undefined
[21:36:07.586]     at AsideLeft (/vercel/path0/.next/server/chunks/399.js:3175:30)
[21:36:07.586]     at d (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
[21:36:07.586]     at bb (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
[21:36:07.586]     at a.b.render (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
[21:36:07.586]     at a.b.read (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
[21:36:07.586]     at Object.exports.renderToString (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
[21:36:07.586]     at Object.renderPage (/vercel/path0/node_modules/next/dist/server/render.js:789:45)
[21:36:07.586]     at Object.defaultGetInitialProps (/vercel/path0/node_modules/next/dist/server/render.js:393:51)
[21:36:07.587]     at Function.getInitialProps (/vercel/path0/.next/server/chunks/859.js:547:20)
[21:36:07.587]     at Function.getInitialProps (/vercel/path0/.next/server/pages/_document.js:153:61)
[21:36:07.592] 
[21:36:07.592] Error occurred prerendering page "/tag/[tag]". Read more: https://nextjs.org/docs/messages/prerender-error
[21:36:07.592] TypeError: Cannot read property 'description' of undefined
[21:36:07.592]     at AsideLeft (/vercel/path0/.next/server/chunks/399.js:3175:30)
[21:36:07.592]     at d (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
[21:36:07.593]     at bb (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
[21:36:07.593]     at a.b.render (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
[21:36:07.593]     at a.b.read (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
[21:36:07.593]     at Object.exports.renderToString (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
[21:36:07.593]     at Object.renderPage (/vercel/path0/node_modules/next/dist/server/render.js:789:45)
[21:36:07.593]     at Object.defaultGetInitialProps (/vercel/path0/node_modules/next/dist/server/render.js:393:51)
[21:36:07.593]     at Function.getInitialProps (/vercel/path0/.next/server/chunks/859.js:547:20)
[21:36:07.593]     at Function.getInitialProps (/vercel/path0/.next/server/pages/_document.js:153:61)
[21:36:07.595] 
[21:36:07.595] Error occurred prerendering page "/category/[category]". Read more: https://nextjs.org/docs/messages/prerender-error
[21:36:07.595] TypeError: Cannot read property 'description' of undefined
[21:36:07.595]     at AsideLeft (/vercel/path0/.next/server/chunks/399.js:3175:30)
[21:36:07.595]     at d (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:33:498)
[21:36:07.595]     at bb (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:16)
[21:36:07.595]     at a.b.render (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:42:43)
[21:36:07.596]     at a.b.read (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83)
[21:36:07.596]     at Object.exports.renderToString (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138)
[21:36:07.596]     at Object.renderPage (/vercel/path0/node_modules/next/dist/server/render.js:789:45)
[21:36:07.596]     at Object.defaultGetInitialProps (/vercel/path0/node_modules/next/dist/server/render.js:393:51)
[21:36:07.596]     at Function.getInitialProps (/vercel/path0/.next/server/chunks/859.js:547:20)
[21:36:07.596]     at Function.getInitialProps (/vercel/path0/.next/server/pages/_document.js:153:61)
[21:36:07.599] [请求缓存]: from:slug-props-message root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.607] [请求API]: from:slug id:43e32b30-52a6-4a6d-9f53-68c544692acb
[21:36:07.609] [请求缓存]: from:slug-props-links root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.610] info  - Generating static pages (12/24)
[21:36:07.611] [请求缓存]: from:slug-props-example-1 root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.619] [请求API]: from:slug id:2bf71804-262a-4bf5-9ad1-4486a13747d1
[21:36:07.622] [请求API]: from:slug id:9b61f4c6-2a87-457e-8386-09dd904ba5dd
[21:36:07.919] [请求成功] from:slug id:43e32b30-52a6-4a6d-9f53-68c544692acb
[21:36:07.955] [请求成功] from:slug id:2bf71804-262a-4bf5-9ad1-4486a13747d1
[21:36:07.956] [请求缓存]: from:slug-props-example-2 root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.963] [请求API]: from:slug id:a6038582-281a-42d7-8ef7-3d180996f150
[21:36:07.986] [请求缓存]: from:search-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:07.995] 全文搜索缓存 page_block_9b61f4c6-2a87-457e-8386-09dd904ba5dd false
[21:36:07.995] 全文搜索缓存 page_block_a6038582-281a-42d7-8ef7-3d180996f150 false
[21:36:08.011] [请求缓存]: from:tag-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:08.030] [请求缓存]: from:tag-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:08.043] [请求缓存]: from:tag-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:08.061] info  - Generating static pages (18/24)
[21:36:08.062] [请求缓存]: from:tag-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:08.090] [请求缓存]: from:category-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:08.108] [请求缓存]: from:category-props root-page-id:a152bc04c11f401e9d11276673f010cd
[21:36:08.268] [请求成功] from:slug id:a6038582-281a-42d7-8ef7-3d180996f150
[21:36:09.773] [请求成功] from:slug id:9b61f4c6-2a87-457e-8386-09dd904ba5dd
[21:36:09.806] {
[21:36:09.806]   youtubeVideoId: null,
[21:36:09.806]   src: 'https://codepen.io/tangly1024/embed/preview/eYeGRRq?default-tabs=html%2Cresult&height=600&host=https%3A%2F%2Fcodepen.io&slug-hash=eYeGRRq',
[21:36:09.806]   format: {
[21:36:09.806]     block_width: 800,
[21:36:09.806]     block_height: 600,
[21:36:09.806]     display_source: 'https://codepen.io/tangly1024/embed/preview/eYeGRRq?default-tabs=html%2Cresult&height=600&host=https%3A%2F%2Fcodepen.io&slug-hash=eYeGRRq',
[21:36:09.806]     block_full_width: false,
[21:36:09.806]     block_page_width: true,
[21:36:09.806]     copied_from_pointer: {
[21:36:09.806]       id: '48c5eacb-362a-4ffa-9b82-8176e6ed1c46',
[21:36:09.806]       table: 'block',
[21:36:09.806]       spaceId: '6c096b44-beb9-48ee-8f92-1efdde47f3a3'
[21:36:09.807]     },
[21:36:09.807]     block_preserve_scale: false
[21:36:09.807]   },
[21:36:09.807]   style: {
[21:36:09.807]     position: 'relative',
[21:36:09.807]     display: 'flex',
[21:36:09.807]     justifyContent: 'center',
[21:36:09.807]     alignSelf: 'center',
[21:36:09.808]     width: '100%',
[21:36:09.808]     maxWidth: '100%',
[21:36:09.808]     flexDirection: 'column',
[21:36:09.808]     height: 600
[21:36:09.808]   }
[21:36:09.808] }
[21:36:09.817] {
[21:36:09.817]   youtubeVideoId: null,
[21:36:09.817]   src: 'https://docs.tangly1024.com/zh',
[21:36:09.817]   format: {
[21:36:09.818]     block_width: 720,
[21:36:09.818]     block_height: 486.99713134765625,
[21:36:09.818]     bookmark_icon: 'https://github.com/favicon.ico',
[21:36:09.818]     bookmark_cover: 'https://opengraph.githubassets.com/7bc91fe7946837cac17c0a6b378f1a80cf14e6eae1e2f0c1dc0f6384826c66ad/tangly1024/NotionNext',
[21:36:09.818]     display_source: 'https://docs.tangly1024.com/zh',
[21:36:09.818]     block_full_width: false,
[21:36:09.818]     block_page_width: true,
[21:36:09.818]     copied_from_pointer: {
[21:36:09.818]       id: '0262365a-23ff-471e-9d94-bd7bfa6bb9fe',
[21:36:09.818]       table: 'block',
[21:36:09.819]       spaceId: '6c096b44-beb9-48ee-8f92-1efdde47f3a3'
[21:36:09.819]     },
[21:36:09.819]     block_preserve_scale: false
[21:36:09.819]   },
[21:36:09.819]   style: {
[21:36:09.819]     position: 'relative',
[21:36:09.819]     display: 'flex',
[21:36:09.819]     justifyContent: 'center',
[21:36:09.819]     alignSelf: 'center',
[21:36:09.819]     width: '100%',
[21:36:09.819]     maxWidth: '100%',
[21:36:09.819]     flexDirection: 'column',
[21:36:09.820]     height: 486.99713134765625
[21:36:09.820]   }
[21:36:09.820] }
[21:36:09.834] info  - Generating static pages (24/24)
[21:36:09.834] 
[21:36:09.835] > Build error occurred
[21:36:09.836] Error: Export encountered errors on following paths:
[21:36:09.836] 	/[slug]
[21:36:09.836] 	/article/[slug]
[21:36:09.836] 	/category/[category]
[21:36:09.836] 	/search/[keyword]
[21:36:09.836] 	/tag/[tag]
[21:36:09.837]     at /vercel/path0/node_modules/next/dist/export/index.js:397:19
[21:36:09.837]     at runMicrotasks (<anonymous>)
[21:36:09.837]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[21:36:09.837]     at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20)
[21:36:09.837]     at async /vercel/path0/node_modules/next/dist/build/index.js:1010:17
[21:36:09.837]     at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20)
[21:36:09.837]     at async /vercel/path0/node_modules/next/dist/build/index.js:886:13
[21:36:09.837]     at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:79:20)
[21:36:09.837]     at async Object.build [as default] (/vercel/path0/node_modules/next/dist/build/index.js:55:25)
[21:36:09.885] error Command failed with exit code 1.
[21:36:09.886] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[21:36:09.896] Error: Command "yarn run build" exited with 1

目录条

你好,我的目录条太长了,只有拖到最下面才能看到完整的目录,能不能给目录条加个滚动条
image

没fork,如何更新源码

之前看文档的时候没注意,就没fork,直接通过文档里面的链接部署了,然后现在发现貌似,没法更新源码

bug: 博客卡片高度问题

修复了上次图片高度的问题,貌似卡片左侧文本的高度又异常了。
我的建议是卡片固定高度,如果描述溢出则末尾追加省略号,图片高度和卡片一致,多余的裁剪。
image

[代码块]代码块copy键功能bug

Describe the bug
单击代码块copy键会立刻在代码块后粘贴一段相同的无高亮的代码(有且仅有一次)

To Reproduce

  1. 打开示例网址
  2. 单击代码块的copy
  3. 可以看到代码块中的代码被重复了一遍

Expected behavior
单击后不影响网页内容

Screenshots

before copy:
image

after copy:
image

Platform:

  • OS: Win11
  • Browser Chrome
  • Version 100.0.4896.75(64-bit)

Additional context

  1. 开关夜间模式会使全文代码块都产生上述效果(被重复一遍)
  2. 安卓端同样存在上述问题, Platform信息如下:
  • OS: Android11
  • Browser Kiwi
  • Version 99.0.4844.94

POST_LIST_STYLE: 'scroll' 的情况下仍然显示第二页选项

Describe the bug
POST_LIST_STYLE: 'scroll' 的情况下仍然显示第二页选项,点击后重复展示没有封面图的最后几个 post。

To Reproduce
Steps to reproduce the behavior:
POST_LIST_STYLE: 'scroll', // ['page','scroll]

Expected behavior
A clear and concise description of what you expected to happen.
不显示第二页选项

Screenshots
If applicable, add screenshots to help explain your problem.
davidweng.tk <-

Platform:

  • OS: [e.g. iOS, Android, macOS]
  • Browser [e.g. chrome, safari, firefox]
  • Version [e.g. 22]
    all platforms

Additional context
Add any other context about the problem here.
N/A

preview的内容是怎样控制的

preview显示的篇幅有时并不令我满意。我查看源代码,这是由标签实现的,但我太菜了,看不懂这里。所以我想简单了解下这里的原理,方便我进行更改。或者,hexo是通过在文章中加入去实现修改preview的内容,能不能在该项目中引入该功能呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.