Skip to content
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

Open
briteming opened this issue Jul 2, 2020 · 4 comments
Open

怎么没看见可执行文件silent? #4

briteming opened this issue Jul 2, 2020 · 4 comments
Assignees

Comments

@briteming
Copy link

hi.

[root@vps ~]# npm install -g silent

  • [email protected]
    added 1 package in 7.297s
    [root@vps ~]#
    [root@vps ~]# silent -h
    bash: silent: command not found
    [root@vps ~]#

怎么解决?

@fritx fritx self-assigned this Sep 14, 2022
@fritx
Copy link
Owner

fritx commented Sep 15, 2022

@briteming hi,感谢关注silent!

之前 silent cli 不完善,老readme中提到的用法也已经过时了
今日 silent 2.0 正在完善中,新的 silent cli 已完善好,也已支持 npm create 新用法

# 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
https://fritx.github.io/silent/?projects/silent_2.0/

@luckypoem
Copy link

hi.

我搭建好了- http://107.173.149.11:2345/ ,不过如何撰写新帖?如何发表新帖?

@fritx
Copy link
Owner

fritx commented Sep 27, 2022

@luckypoem hi,感谢关注

这是一个极简的博客模板,是纯静态的,所以目前暂时推荐的方式是手动编辑这个blog项目

比如你可以在IDE或编辑器里打开这个blog目录,然后 p/ 目录是 所有文章的.md文件 以及图片 的存放位置

新建一篇文章的具体步骤如下:

  1. 在 p/ 目录下 任意合适的位置 新建该文章的.md文件,如 p/2022/09/my-first-post.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! (此处为正文)
  1. 在该文章对应的索引列表.md文件 如 p/posts.md 中添加链接
<!-- p/posts.md -->
# 🌈 My Posts

+## [My First Post](2022/09/my-first-post.md)
+
+> Hello World! (此处为摘要)

新帖即发表完成🎉 以上文件名 目录结构 可按自己实际情况任意组织

@fritx
Copy link
Owner

fritx commented Sep 27, 2022

这里有几个silent类静态blog的相关教程推荐:

🚀 Blog Setup via Github Fork
https://fritx.github.io/silent/?2022/09/blog-setup-via-github-fork

1分钟快速构建你的博客
https://v1.jayinton.com/silentor/?p=docs/getting-start/main.md

silentor, a friendly fork of silent
https://v1.jayinton.com/silentor/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants