hexo and pelican

用pelican或hexo建一个漂亮的博客

install

python 2.7

https://www.python.org/downloads/release/python-2710/

easy_install

https://pypi.python.org/pypi/setuptools
https://bootstrap.pypa.io/ez_setup.py

1
E:\Python27\python.exe ez_setup.py

pip

easy_install pip 提示找不到命令
设置环境变量 E:\Python27;E:\Python27\Scripts
其实新版的python都自带了pip,无需安装

make

http://pan.baidu.com/s/1hqzJBBe
解压到python目录

pelican

pip install pelican

markdown

1
pip install markdown

quick-start

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone Asia/Shanghai

run

1
pelican content
cd ~/projects/yoursite/output
python -m pelican.server

themes

下载themes

1
pelican theme -i "你喜欢的主题"

hexo

install

download

1
npm install -g hexo
mkdir blog
cd blog
hexo init
npm install
hexo generate
hexo server

theme

clone theme to folder themes
_config.yml theme: jacman


本博客欢迎转发,但请保留原作者信息
github:codejuan
博客地址:http://blog.decbug.com/