Total Pageviews

Tuesday, 27 January 2026

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


首先fork此项目https://github.com/JasonLamv-t/tailwind-next-blog,我fork后的项目地址是https://github.com/briteming/jtnb, 
然后访问https://github.com/briteming/jtnb/tree/main/data/posts,新建源帖fh.mdx,内容为:

---
title: 战马
date: '2025-12-18T20:11:00'
tags:
  [
    'misc1',
    'misc2',
    'misc3'
  ]
draft: false
pinned: false
summary: 这是一篇文章
canonicalUrl: fh
---

此处写视频的嵌入代码

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

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

然后,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://jtnb.vercel.app/

 新建源帖后,博客网站2-3分钟内就会自动更新。

 项目地址:

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

https://github.com/briteming/jtnb/

演示博客:https://jtnb.vercel.app/

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

另外,可以看到帖子 https://jtnb.vercel.app/posts/build-in-syntax 位于博客首页的顶部,这是因为其源帖https://github.com/briteming/jtnb/blob/main/data/posts/built-in-supported-md-mdx-syntax.mdx?plain=1里的pinned的值为true,意思是启用置顶。

 

No comments:

Post a Comment