git clone https://github.com/Anomareh/mynt.git
cd mynt
python setup.py install
mynt init mynt-site
cd mynt-site
mynt gen --base-url http://mynt.brite.biz -f output (这个就是生成/更新静态网站的命令。在当前目录下,会生成output目录。)
as3:~/mynt/mynt-site# ls
archives _assets config.yml feed.xml index.html output _posts _templates
as3:~/mynt/mynt-site# ls output
2011 archives assets feed.xml index.html
(可见~/mynt/mynt-site/output/就是静态网站的根目录。可绑上面指定的域名mynt.brite.biz到该目录)
发贴方法:
as3:~/mynt/mynt-site/output# cd ..
as3:~/mynt/mynt-site# ls
archives _assets config.yml feed.xml index.html output _posts _templates
as3:~/mynt/mynt-site# cd _posts
as3:~/mynt/mynt-site/_posts# ls
2011-12-04-It-works.md
as3:~/mynt/mynt-site/_posts#
按2011-12-04-It-works.md,新建帖子2013-11-21-test1.md,格式如下:
--- (必须靠左上角)
layout: post.html
title: 测试2
tags: [misc]
---
这是测试2.
然后:
as3:~/mynt/mynt-site/_posts# cd ..
as3:~/mynt/mynt-site# mynt gen --base-url http://mynt.brite.biz -f output
>> Parsing
>> Rendering
>> Generating
Completed in 0.568s
as3:~/mynt/mynt-site#
演示站点:mynt.brite.biz
项目地址:https://github.com/Anomareh/mynt/
使用指南:http://mynt.mirroredwhite.com/docs/quickstart/
python环境需为2.7版。编译python2.7,请见http://briteming.blogspot.co.uk/2013/11/importerror-no-module-named-sqlite3.html
-----------------------------------------------------------
一个用mynt搭建的站点
cd mynt
python setup.py install
mynt init mynt-site
cd mynt-site
mynt gen --base-url http://mynt.brite.biz -f output (这个就是生成/更新静态网站的命令。在当前目录下,会生成output目录。)
as3:~/mynt/mynt-site# ls
archives _assets config.yml feed.xml index.html output _posts _templates
as3:~/mynt/mynt-site# ls output
2011 archives assets feed.xml index.html
(可见~/mynt/mynt-site/output/就是静态网站的根目录。可绑上面指定的域名mynt.brite.biz到该目录)
发贴方法:
as3:~/mynt/mynt-site/output# cd ..
as3:~/mynt/mynt-site# ls
archives _assets config.yml feed.xml index.html output _posts _templates
as3:~/mynt/mynt-site# cd _posts
as3:~/mynt/mynt-site/_posts# ls
2011-12-04-It-works.md
as3:~/mynt/mynt-site/_posts#
按2011-12-04-It-works.md,新建帖子2013-11-21-test1.md,格式如下:
--- (必须靠左上角)
layout: post.html
title: 测试2
tags: [misc]
---
这是测试2.
然后:
as3:~/mynt/mynt-site/_posts# cd ..
as3:~/mynt/mynt-site# mynt gen --base-url http://mynt.brite.biz -f output
>> Parsing
>> Rendering
>> Generating
Completed in 0.568s
as3:~/mynt/mynt-site#
演示站点:mynt.brite.biz
项目地址:https://github.com/Anomareh/mynt/
使用指南:http://mynt.mirroredwhite.com/docs/quickstart/
python环境需为2.7版。编译python2.7,请见http://briteming.blogspot.co.uk/2013/11/importerror-no-module-named-sqlite3.html
-----------------------------------------------------------
一个用mynt搭建的站点
pip install -r website/requirements.txt
mynt gen website build
(cd build && python -m SimpleHTTPServer)
from https://github.com/econchick/new-coder
https://github.com/econchick/new-coder/tree/master/website