Total Pageviews

Wednesday, 28 January 2026

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


首先fork此项目https://github.com/weijunext/new-blog,我fork后的项目地址是
https://github.com/ymbrite/wnnb, 
然后访问https://github.com/ymbrite/wnnb/tree/main/content,新建源帖fh.mdx,内容为:

---
title: 战马
description: 这是一篇文章
slug: fh
tags: misc1,misc2,misc3
date: 2026-01-28
---

此处写视频的嵌入代码

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

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

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

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

 项目地址:

https://github.com/weijunext/new-blog

https://github.com/ymbrite/wnnb

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

https://wnnb.vercel.app/article/fh 能显示视频。

 https://wnnb.vercel.app/ ,帖子是按字母顺序发表的,从下往上排列:
https://wnnb.vercel.app/article/fi-song-sound
https://wnnb.vercel.app/article/fh
https://wnnb.vercel.app/article/dads-nutrition
https://wnnb.vercel.app/article/ce
https://wnnb.vercel.app/article/admonition

访问 https://github.com/ymbrite/wnnb/blob/main/content/044.%E6%88%91%E6%95%B4%E7%90%86%E4%BA%86%E4%B8%80%E4%BB%BD%E7%8B%AC%E7%AB%8B%E5%BC%80%E5%8F%91%E8%80%85%E5%87%BA%E6%B5%B7%E6%8A%80%E6%9C%AF%E6%A0%88.mdx?plain=1,看到第7行:pin: pin

这表明 此帖子被置顶。如果去掉第7行代码,则此帖不会置顶。

No comments:

Post a Comment