npm install -g catlogjs
npm update -g catlogjs
mkdir catlog-site
cd catlog-site
catlog init (此命令会在当前目录下,初始化博客的目录结构)
catlog publish (这是创建帖子的命令。回答它所提出的问题-
[?] write your article name: 测试2
[?] choose article category: misc
[?] input new permalink title: test2
[?] input author name: ym
created a new article directory below contents folder.
edit article in /root/catlog-site/contents/misc/test2/index.md
然后去编辑它要你编辑的那个md文件。
在该md文件中,只需输入正文,无需写任何header内容。)
as3:~/catlog-site# catlog build (这是生成/更新静态网站的命令)
as3:~/catlog-site# ls
build contents plugins settings.json themes
as3:~/catlog-site# cd build
as3:~/catlog-site/build# ls
feed.xml index.html misc themes
(可见~/catlog-site/build/就是静态网站的根目录)
as3:~/catlog-site/build# nohup Rwebserver 24370 > /dev/null &
访问http://as3.brite.biz:24370/,即可看到网站效果。
演示站点:http://as3.brite.biz:24370/,http://cl.brite.biz
项目地址:https://github.com/catlog/catlog
npm update -g catlogjs
mkdir catlog-site
cd catlog-site
catlog init (此命令会在当前目录下,初始化博客的目录结构)
catlog publish (这是创建帖子的命令。回答它所提出的问题-
[?] write your article name: 测试2
[?] choose article category: misc
[?] input new permalink title: test2
[?] input author name: ym
created a new article directory below contents folder.
edit article in /root/catlog-site/contents/misc/test2/index.md
然后去编辑它要你编辑的那个md文件。
在该md文件中,只需输入正文,无需写任何header内容。)
as3:~/catlog-site# catlog build (这是生成/更新静态网站的命令)
as3:~/catlog-site# ls
build contents plugins settings.json themes
as3:~/catlog-site# cd build
as3:~/catlog-site/build# ls
feed.xml index.html misc themes
(可见~/catlog-site/build/就是静态网站的根目录)
as3:~/catlog-site/build# nohup Rwebserver 24370 > /dev/null &
访问http://as3.brite.biz:24370/,即可看到网站效果。
演示站点:http://as3.brite.biz:24370/,http://cl.brite.biz
项目地址:https://github.com/catlog/catlog