首先fork此项目https://github.com/decaporg/one-click-hugo-cms ,我fork后的项目地址是
https://github.com/ymbrite/ochc
然后访问 https://github.com/ymbrite/ochc/tree/main/site/content/post,在此新建fh目录,然后在fh目录里面,新建index.md ,内容如下:
---
title: '战马'
date: 2026-02-16T13:41:00.000Z
description: >-
这是一篇文章。
---
此处写视频的代码或正文。
(详见 https://github.com/ymbrite/ochc/blob/main/site/content/post/fh/index.md?plain=1)
然后访问vercel.com/new ,导入项目https://github.com/ymbrite/ochc 。在设置输出目录时,请设为dist,如图:
然后,点击deploy按钮,等待部署完成,部署完成后,我得到网址
https://ochc-one.vercel.app/ ,
(我又部署了一次,得到另一个网址 https://ochc-nuqw.vercel.app/)
新建源帖后,博客网站2-3分钟内就会自动更新。
项目地址:
https://github.com/decaporg/one-click-hugo-cms
https://github.com/ymbrite/ochc
博客地址:
https://ochc-one.vercel.app/
(https://ochc-nuqw.vercel.app/)
https://ochc-one.vercel.app/post ,支持分页。
( https://ochc-nuqw.vercel.app/post)
https://ochc-one.vercel.app/post/fh/ 不能显示视频。
https://github.com/decaporg/one-click-hugo-cms/issues/793

No comments:
Post a Comment