如何新建文章
2025/4/27小于 1 分钟
如何新建文章
注意
此文章是作者自己看的,他人看到可无视。
新建一个 markdown
文件,加入以下 front-matter
:
---
date: 20xx-xx-xx #日期
#category: ["1","2","3"] #分类
#tag: ["1","2","3"] #标签
#order: 1 #排序,正数前,绝对值小的前
#dir:
# - order: 1 #这个组的排序,同order
#index: false #是否在侧边栏显示
#icon: code
editLink: false #是否显示编辑按钮
comment: false #是否可以评论
contributors: false #是否显示贡献者
#title是md文件的第一个一级标题
---
<!-- more -->
在 Git Bash 中运行以下代码:
npm run docs:build
cd src/.vuepress/dist
git init
git add .
git commit -m "added sth"
git branch -m master main
git remote add origin git@github.com:0xcjy/0xcjy.github.io.git
git push -f origin main