我用github a/c: luckypoem@gmail.com登录cloudflare.com后,导入仓库https://github.com/brightmann/snb
下面的插图就是我跟它的对话过程,共 2 张插图.
项目地址:
https://github.com/sixfwa/nextjs-blog
https://github.com/brightmann/snb
访问 https://github.com/brightmann/snb/tree/main/articles ,在此处,新建源帖fh.md ,内容为:
--- ,
title: "战马"
category: "misc"
date: "03-10-2026T18:26"
---
此处写正文或html codes.
等待cloudflare.com平台完成部署。完成部署后,我得到博客网址:
https://snb.luckypoem.workers.dev/
访问 https://github.com/brightmann/snb/tree/main/lib ,编辑articles.ts文件,把第66行的
use(html)改为 use(html, { sanitize: false }) 即可让嵌入源帖中的iframe代码得到渲染。


No comments:
Post a Comment