wildcatco / notion-blog Goto Github PK
View Code? Open in Web Editor NEWNext.js blog template that uses Notion as CMS
Home Page: https://notion-blog-wildcatco.vercel.app/
Next.js blog template that uses Notion as CMS
Home Page: https://notion-blog-wildcatco.vercel.app/
Hi, this is a great work.
I have a question though. What is the license of the code?
Can we create a derivatives blog from this?
00:33:45.931 | at /vercel/path0/.next/server/chunks/760.js:121:82
00:33:45.931 | at Array.forEach ()
00:33:45.931 | at getAllPostsFromNotion (/vercel/path0/.next/server/chunks/760.js:120:24)
00:33:45.931 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
00:33:45.931 | at async Object.generateStaticParams (/vercel/path0/.next/server/app/blog/[slug]/page.js:821:22)
00:33:45.931 | at async buildParams (/vercel/path0/node_modules/next/dist/build/utils.js:916:36)
00:33:45.931 | at async /vercel/path0/node_modules/next/dist/build/utils.js:933:33
00:33:45.931 | at async /vercel/path0/node_modules/next/dist/build/utils.js:1069:117
00:33:45.931 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:103:20)
00:33:45.932 | ย
00:33:45.932 | > Build error occurred
00:33:45.934 | Error: Failed to collect page data for /blog/[slug]
00:33:45.934 | at /vercel/path0/node_modules/next/dist/build/utils.js:1158:15
00:33:45.934 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
00:33:45.934 | type: 'Error'
00:33:45.934 | }
00:33:45.993 | Error: Command "npm run build" exited with 1
Blog dose not update with new content when sync finished!
Can you help me solve ?
hello, i really appreciate your great work
i have a question though
constant relatedPosts
is the intended implementation?
see: src/app/blog/[slug]/page.tsx: 38
const relatedPosts: Post[] = allPosts.filter(
(p) =>
p.slug !== slug && p.categories.some((v) => post.categories.includes(v))
);
is the following a better way to display only published articles in the related posts?
const relatedPosts: Post[] = allPosts.filter(
(p) =>
p.slug !== slug &&
p.published &&
p.categories.some((v) => post.categories.includes(v))
);
When I changed the blog, after I reloaded the web page (Vercel host) but blog did not change.
Localhost no problem.
Can you help me solve this issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.