Total Pageviews

Sunday, 9 July 2023

一个基于nextjs的静态博客程序: next-contentlayer

 

A template with Next.js 13 app dir, Contentlayer, Tailwind CSS and dark mode.

Next.js + Contentlayer

https://next-contentlayer.vercel.app

from https://github.com/shadcn/next-contentlayer

( 搭建基于nextjs的静态博客程序snc

 首先fork此项目https://github.com/shadcn/next-contentlayer,我fork后的项目地址是

 https://github.com/ymbrite/snc

然后访问 https://github.com/ymbrite/snc/tree/main/content/posts,在此新建源帖

dd-fh.mdx,内容为:

---
title: 战马
description: 这是一篇文章
date: "2026-02-17"
---

此处粘贴视频的嵌入代码

(详见https://github.com/ymbrite/snc/blob/main/content/posts/dd-fh.mdx?plain=1)

然后访问vercel.com/new ,导入项目  https://github.com/ymbrite/snc,然后点击deploy按钮,等待部署完成。部署完成后,我得到网址https://snc-lake.vercel.app/

项目地址:

https://github.com/shadcn/next-contentlayer

 https://github.com/ymbrite/snc

博客地址:

https://snc-lake.vercel.app/

帖子是按字母顺序,从上到下排列的:

 https://snc-lake.vercel.app/posts/cd-test

 https://snc-lake.vercel.app/posts/ce

 https://snc-lake.vercel.app/posts/dd-fh

 https://snc-lake.vercel.app/posts/deploying-next-apps

 https://snc-lake.vercel.app/posts/dd-fh 能显示视频。)

---------------------------------------------------------- 

这里是博客 主观世界 的源码。

本站使用 shadcn/next-contentlayer 作为初始模版创建,并更改了大量样式及功能。

使用的主要技术有:

网站托管在 Vercel ,互动数据存储在 Upstash

from https://github.com/noobnooc/subnooc.com

( https://github.com/ymbrite/nsc)

( 搭建基于nextjs的静态博客程序nsc

 首先fork此项目https://github.com/noobnooc/subnooc.com,我fork后的项目地址是

 https://github.com/ymbrite/nsc

然后访问 https://github.com/ymbrite/nsc/tree/main/content/posts,在此,新建源帖2026-02-17-1237-fh.md,内容为:

---
title: 战马
description: 这是一篇文章
slug: fh
category: reading
date: "2026-02-17"
keywords:
  - misc1
  - misc2
  - misc3
---

此处粘贴视频的嵌入代码

(详见https://github.com/ymbrite/nsc/blob/main/content/posts/2026-02-17-1237-fh.md?plain=1)

然后访问vercel.com/new ,导入项目  https://github.com/ymbrite/nsc,然后点击deploy按钮,等待部署完成。部署完成后,我得到网址https://nsc-8k3k.vercel.app/

项目地址:

https://github.com/noobnooc/subnooc.com

 https://github.com/ymbrite/nsc

博客地址:

https://nsc-8k3k.vercel.app/

 同一天里的帖子按数字顺序从上往下排列:

 https://github.com/ymbrite/nsc/blob/main/content/posts/2026-02-17-1237-fh.md

对应的帖子是 https://nsc-8k3k.vercel.app/posts/fh

 https://github.com/ymbrite/nsc/blob/main/content/posts/2026-02-17-1251-ce.md

 对应的帖子是https://nsc-8k3k.vercel.app/posts/ce

 https://github.com/ymbrite/nsc/blob/main/content/posts/2026-02-17-1254-test.md

  对应的帖子是https://nsc-8k3k.vercel.app/posts/test

 https://nsc-8k3k.vercel.app/posts/fh 能显示视频。

-----------------------------------------------------------

相关帖子:

https://briteming.blogspot.com/2023/07/nobelium.html

 

No comments:

Post a Comment