-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么没看见可执行文件silent? #4
Comments
@briteming hi,感谢关注silent! 之前 silent cli 不完善,老readme中提到的用法也已经过时了 # create it
npm create silent <dest>
# or
npm i -g silent
silent create <dest>
# eg.
npm create silent ~/t/my-blog
# >>>
# copying /Users/fritx/.nvm/versions/node/v16.14.0/lib/node_modules/silent/blog
# => /Users/fritx/t/my-blog
# silent-create completed
# serve it
npm i -g serve
serve ~/t/my-blog -p 3000
# >>>
# Serving! http://localhost:3000 https://github.com/fritx/silent#usage |
hi. 我搭建好了- http://107.173.149.11:2345/ ,不过如何撰写新帖?如何发表新帖? |
@luckypoem hi,感谢关注 这是一个极简的博客模板,是纯静态的,所以目前暂时推荐的方式是手动编辑这个blog项目 比如你可以在IDE或编辑器里打开这个blog目录,然后 p/ 目录是 所有文章的.md文件 以及图片 的存放位置 新建一篇文章的具体步骤如下:
cd my-silent-blog
mkdir -p p/2022/09/
echo '# My First Post\n\nHello World! (此处为正文)' > p/2022/09/my-first-post.md <!-- p/2022/09/my-first-post.md -->
+# My First Post
+
+Hello World! (此处为正文)
<!-- p/posts.md -->
# 🌈 My Posts
+## [My First Post](2022/09/my-first-post.md)
+
+> Hello World! (此处为摘要) 新帖即发表完成🎉 以上文件名 目录结构 可按自己实际情况任意组织 |
这里有几个silent类静态blog的相关教程推荐: 🚀 Blog Setup via Github Fork 1分钟快速构建你的博客 silentor, a friendly fork of silent |
hi.
[root@vps ~]# npm install -g silent
added 1 package in 7.297s
[root@vps ~]#
[root@vps ~]# silent -h
bash: silent: command not found
[root@vps ~]#
怎么解决?
The text was updated successfully, but these errors were encountered: