Total Pageviews

Thursday, 6 February 2025

搭建静态博客程序 asm

 首先fork此项目https://github.com/abelljs/abell-starter-minima ,我fork后的项目地址是

https://github.com/briteming/asm,然后访问  content目录- https://github.com/briteming/asm/tree/main/content,在此新建源帖:点击页面右上角的 add file->create new file, 然后在name your file栏里,输入,比如test/ ,这里加上/ , 表明这是一个目录,然后在其后面的栏里输入index.md


    然后,在内容框里,输入:

---
title: "测试"
description: "这是一篇文章."
createdAt: "2025-02-06 07:19:00"
---

这是测试。

(详见https://github.com/briteming/asm/blob/main/content/test/index.md?plain=1)

然后,访问 app.netlify.com,导入项目https://github.com/briteming/asm 。

点击页面右上角的add new site, 在弹出的下拉菜单中,选择

importing an existing project.


Deploy to Netlify Button, 即 访问https://app.netlify.com/start/deploy?repository=https://github.com/abelljs/abell-starter-minima 也可。点击后,会自动在我的用户名abell-starter-minima(https://github.com/briteming/abell-starter-minima), 并自动在 netlify.com上开始部署(不需要我输入参数了),部署完成后,我得到网址https://fluffy-taiyaki-650057.netlify.app

然后一样的访问content目录- https://github.com/briteming/abell-starter-minima/tree/main/content,在此新建源帖。

 

No comments:

Post a Comment