Total Pageviews

Monday, 6 July 2026

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


首先fork此项目https://github.com/JasonLamv-t/tailwind-next-blog ,我fork后,得到的项目地址是https://github.com/brightmann/jtnb . 

访问https://github.com/brightmann/jtnb/tree/main/data/posts ,在此处新建源帖(即add file),我新建了源帖fh.mdx,内容为:

---
title: 战马
date: '2026-06-18 10:10'
tags:
  [
    'misc1',
    'misc2',
    'misc3',
  ]
draft: false
pinned: false
summary: 这是一篇文章
canonicalUrl: fh
---

此处写正文或html codes.

( 详见https://github.com/brightmann/jtnb/blob/main/data/posts/fh.mdx?plain=1) 

然后,访问vercel.com/new ,导入项目https://github.com/brightmann/jtnb,

  Build Command栏填入pnpm build

 Install Command栏填入pnpm install

然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:

https://jtnb-gamma.vercel.app/

项目地址:

https://github.com/JasonLamv-t/tailwind-next-blog

https://github.com/brightmann/jtnb

演示博客: 

https://jtnb-gamma.vercel.app/

https://jtnb-gamma.vercel.app/posts/fh 能显示视频

No comments:

Post a Comment