Pages

Wednesday, 10 June 2026

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

 首先fork此项目https://github.com/hutusi/amytis,我fork后,得到的项目地址是

 https://github.com/brightmann/amytis

在此处 https://github.com/brightmann/amytis/tree/main/content/posts创建源帖,比如fh.mdx ,内容为:

---
title: "战马"
date: "2026-06-09T23:44:00"
excerpt: "这是一篇文章"
category: "Test"
tags: ["misc1", "misc2", "misc3"]
author: "ym"
---

此处写正文或html codes

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

然后,访问vercel.com/new, 导入项目amytis (点击import),在跳到的页面中,输入如下命令,如图:


 注意:在Build Command那栏,输入的命令应是bun run build, 不是bun build!然后,点击

deploy按钮,等待部署完成。 部署完成后,我得到的网址是

https://amytis-prh7.vercel.app/  

 https://amytis-prh7.vercel.app/posts/ 支持分页
https://amytis-prh7.vercel.app/posts/fh/ 能显示视频。

项目地址: 

 https://github.com/hutusi/amytis

  https://github.com/brightmann/amytis

演示博客: https://amytis-prh7.vercel.app/ 



 

No comments:

Post a Comment