git clone https://github.com/felipetavares/bake
cd bake
make
make install
这样bake就编译好了。可执行文件为/usr/local/bin/bake
cd /usr/local
git clone https://github.com/poesiacompilada/poesiacompilada.github.io
cd poesiacompilada.github.io/blog
(把host的值改为你所绑定的域名地址:http://urdomain.com ,把lang的值改为en_US)
root@AR:/usr/local/poesiacompilada.github.io/blog# bake
演示网站:http://bk.bright.biz.st
项目地址:
https://github.com/felipetavares/bake,https://github.com/poesiacompilada/poesiacompilada.github.io
作者用bake搭建的另一个博客http://ctrl-c.club/~philips/ 的源码:
https://github.com/felipetavares/bake/files/554392/blog.zip
(from https://github.com/felipetavares/bake/issues/6)
我搭建如下:
cd /usr/local
mkdir philips-site
cd philips-site
wget https://github.com/felipetavares/bake/files/554392/blog.zip
unzip blog.zip
wget https://github.com/felipetavares/bake/files/554407/css.zip
unzip css.zip (解压后,得到3个文件:blog.css,prism.css,prism.js)
cd blog
mkdir css
mv ../blog.css css
mv ../prism.css css
mv ../prism.js css
此博客程序跟baker(http://briteming.blogspot.com/2016/07/perlbaker.html)不是一回事。
cd bake
make
make install
这样bake就编译好了。可执行文件为/usr/local/bin/bake
cd /usr/local
git clone https://github.com/poesiacompilada/poesiacompilada.github.io
cd poesiacompilada.github.io/blog
root@AR:/usr/local/poesiacompilada.github.io/blog# nano test-1.markdown
root@AR:/usr/local/poesiacompilada.github.io/blog# cat test-1.markdown
# 测试1
这是测试1.
root@AR:/usr/local/poesiacompilada.github.io/blog# bake (此即生成/更新静态网站的根目录的命令)
(访问网址https://github.com/poesiacompilada/poesiacompilada.github.io/tree/master/blog,里面有index.html,可见blog目录/我的情形是/usr/local/poesiacompilada.github.io/blog就是静态网站的根目录)
root@AR:/usr/local/poesiacompilada.github.io/blog# nano bakefile(把host的值改为你所绑定的域名地址:http://urdomain.com ,把lang的值改为en_US)
root@AR:/usr/local/poesiacompilada.github.io/blog# bake
演示网站:http://bk.bright.biz.st
项目地址:
https://github.com/felipetavares/bake,https://github.com/poesiacompilada/poesiacompilada.github.io
作者用bake搭建的另一个博客http://ctrl-c.club/~philips/ 的源码:
https://github.com/felipetavares/bake/files/554392/blog.zip
(from https://github.com/felipetavares/bake/issues/6)
我搭建如下:
cd /usr/local
mkdir philips-site
cd philips-site
wget https://github.com/felipetavares/bake/files/554392/blog.zip
unzip blog.zip
wget https://github.com/felipetavares/bake/files/554407/css.zip
unzip css.zip (解压后,得到3个文件:blog.css,prism.css,prism.js)
cd blog
mkdir css
mv ../blog.css css
mv ../prism.css css
mv ../prism.js css
root@AR:/usr/local/philips-site/blog# nano test-1.markdown
root@AR:/usr/local/philips-site/blog# cat test-1.markdown
# 测试1
这是测试1.
root@AR:/usr/local/philips-site/blog# nano bakefile
(把output的值改为index.html , 把host的值改为所绑定的域名地址"http://cccp.bright.biz.st" ,)
root@AR:/usr/local/philips-site/blog# cat bakefile
output=index.html
template=template.html
date="%B %d - %Y at %Hh"
host="http://cccp.bright.biz.st"
root@AR:/usr/local/philips-site/blog# bake
(在/usr/local/philips-site/blog/下,会生成index.html文件,可见/usr/local/philips-site/blog/就是静态网站的根目录。bake就是生成/更新静态网站的根目录的命令)
演示网站:http://cccp.bright.biz.st
项目地址:
https://github.com/felipetavares/bake/
https://github.com/felipetavares/bake/files/554392/blog.zip
此博客程序跟baker(http://briteming.blogspot.com/2016/07/perlbaker.html)不是一回事。