git clone https://github.com/lakshmivyas/hyde.git hyde-lakshmivyas
cd hyde-lakshmivyas
pip install -r requirements.txt
python setup.py install
pip install clyde
(During initialization hyde creates a basic website by copying the specified template (or default). This template contains the skeleton site layout, some content pages and settings.py.)
python hyde.py -g -s ~/hyde-site (在~/hyde-site/下,会生成deploy目录,此~/hyde-site/deploy/就是静态网站的根目录。python hyde.py -g -s ~/hyde-site就是生成/更新静态网站的命令)
cd ~/hyde-site/deploy/
nohup Rwebserver 4569 > /dev/null &
访问http://as3.brite.biz:4569/,即可看到网站效果。
发布新帖子的方法:
cd ~/hyde-site
as3:~/hyde-site# ls
content deploy layout media settings.py settings.pyc
as3:~/hyde-site# cd content
as3:~/hyde-site/content# ls
about blog index.html prerendered
as3:~/hyde-site/content# cd blog
as3:~/hyde-site/content/blog# ls
2007 2008 2009 2010 atom.xml blog.html
as3:~/hyde-site/content/blog# cd 2007
as3:~/hyde-site/content/blog/2007# ls
happy-christmas.html listing.html
as3:~/hyde-site/content/blog/2007#
按happy-christmas.html的内容格式,新建帖子test1.html,格式如下:
{% extends "_post.html" %}
{%hyde
title: test1 (这是标题)
created: 2007-12-20 18:20:35 (这是写帖子的时间)
%}
{% block article %}
这是测试1. (这里写正文)
{% endblock %}
然后:
as3:~/hyde-site/content/blog/2007# cd ~/hyde-lakshmivyas/
as3:~/hyde-lakshmivyas# python hyde.py -g -s ~/hyde-site
演示站点:http://as3.brite.biz:4569/
http://as3.brite.biz:4569/blog/blog.html
http://as3.brite.biz:4569/blog/2007/test1.html (我发表的帖子)
http://as3.brite.biz:4569/blog/2007/happy-christmas.html (我更新的帖子)
http://hyde-old.brite.biz
http://hyde-old.brite.biz/blog/blog.html
项目地址:https://github.com/lakshmivyas/hyde
cd hyde-lakshmivyas
pip install -r requirements.txt
python setup.py install
pip install clyde
pip install argparse
pip install commando
pip install jinja2
pip install markdown
pip install pyyaml
pip install pygments
pip install smartypants
pip install -e git://github.com/hyde/typogrify#egg=typogrify
pip install cssmin
python hyde.py -i -s ~/hyde-site -f (此命令会生成~/hyde-site/目录)
(During initialization hyde creates a basic website by copying the specified template (or default). This template contains the skeleton site layout, some content pages and settings.py.)
python hyde.py -g -s ~/hyde-site (在~/hyde-site/下,会生成deploy目录,此~/hyde-site/deploy/就是静态网站的根目录。python hyde.py -g -s ~/hyde-site就是生成/更新静态网站的命令)
cd ~/hyde-site/deploy/
nohup Rwebserver 4569 > /dev/null &
访问http://as3.brite.biz:4569/,即可看到网站效果。
发布新帖子的方法:
cd ~/hyde-site
as3:~/hyde-site# ls
content deploy layout media settings.py settings.pyc
as3:~/hyde-site# cd content
as3:~/hyde-site/content# ls
about blog index.html prerendered
as3:~/hyde-site/content# cd blog
as3:~/hyde-site/content/blog# ls
2007 2008 2009 2010 atom.xml blog.html
as3:~/hyde-site/content/blog# cd 2007
as3:~/hyde-site/content/blog/2007# ls
happy-christmas.html listing.html
as3:~/hyde-site/content/blog/2007#
按happy-christmas.html的内容格式,新建帖子test1.html,格式如下:
{% extends "_post.html" %}
{%hyde
title: test1 (这是标题)
created: 2007-12-20 18:20:35 (这是写帖子的时间)
%}
{% block article %}
这是测试1. (这里写正文)
{% endblock %}
然后:
as3:~/hyde-site/content/blog/2007# cd ~/hyde-lakshmivyas/
as3:~/hyde-lakshmivyas# python hyde.py -g -s ~/hyde-site
演示站点:http://as3.brite.biz:4569/
http://as3.brite.biz:4569/blog/blog.html
http://as3.brite.biz:4569/blog/2007/test1.html (我发表的帖子)
http://as3.brite.biz:4569/blog/2007/happy-christmas.html (我更新的帖子)
http://hyde-old.brite.biz
http://hyde-old.brite.biz/blog/blog.html
项目地址:https://github.com/lakshmivyas/hyde