Total Pageviews

Tuesday, 7 March 2017

搭建基于纯linux命令的静态博客程序jenny

cd /usr/local

git clone https://github.com/hmngwy/jenny jenny-site
cd jenny-site


root@AR:/usr/local/jenny-site# mkdir dist
root@AR:/usr/local/jenny-site# echo "DIST=dist" >> .blogrc
root@AR:/usr/local/jenny-site# nano 2017-02-24-test-1.md
(新建源帖)
root@AR:/usr/local/jenny-site# cat 2017-02-24-test-1.md
# 测试1
tags: misc1 misc2 misc3

这是测试1.

看看如何?
root@AR:/usr/local/jenny-site# ./jenny (此即生成/更新静态网站的根目录的命令)
root@AR:/usr/local/jenny-site# ls
2017-02-24-first-post.md       2017-03-07-send-mhr.md
2017-02-24-test-1.md       2017-03-07-traveler-song.md
2017-02-24-test-2.md       2017-03-07-u1-thirty-sentences.md
2017-02-24-v0bilu.md       Makefile
2017-02-24-v1torturing-each-other.md  README.md
2017-02-24-v2wuhan-murder.md       dist
2017-03-07-ask-lsj.md       jenny
2017-03-07-qingming.md       share
(生成了dist目录)
root@AR:/usr/local/jenny-site# cd dist
root@AR:/usr/local/jenny-site/dist# ls
index.html  page  post
root@AR:/usr/local/jenny-site/dist#
(可见/usr/local/jenny-site/dist就是静态网站的根目录)

演示网站:http://jny.bright.biz.st
项目地址:https://github.com/hmngwy/jenny,
https://github.com/hmngwy/blog
(可惜不支持发表180kb的长文)

No comments:

Post a Comment