Comments (4)
@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/
from silent.
hi.
我搭建好了- http://107.173.149.11:2345/ ,不过如何撰写新帖?如何发表新帖?
from silent.
@luckypoem hi,感谢关注
这是一个极简的博客模板,是纯静态的,所以目前暂时推荐的方式是手动编辑这个blog项目
比如你可以在IDE或编辑器里打开这个blog目录,然后 p/ 目录是 所有文章的.md文件 以及图片 的存放位置
新建一篇文章的具体步骤如下:
- 在 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! (此处为正文)
- 在该文章对应的索引列表.md文件 如
p/posts.md
中添加链接
<!-- p/posts.md -->
# 🌈 My Posts
+## [My First Post](2022/09/my-first-post.md)
+
+> Hello World! (此处为摘要)
新帖即发表完成🎉 以上文件名 目录结构 可按自己实际情况任意组织
from silent.
这里有几个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/
from silent.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silent.