mkdir ~/.bazinga/
cd ~/.bazinga/
git clone https://github.com/ap0calypse/bazinga.git
cd bazinga
as3:~/.bazinga/bazinga# ls
AUTHORS bzg examples LICENSE README
as3:~/.bazinga/bazinga# ln -s ~/.bazinga/bazinga/bzg /usr/local/bin/bzg
as3:~/.bazinga/bazinga# cp examples/* ~/.bazinga/bazinga
as3:~/.bazinga/bazinga# ls
AUTHORS bzg example-config examples index.template LICENSE README style-improved.css
as3:~/.bazinga/bazinga# cp example-config ~/.bazinga/bazinga.conf
as3:~/.bazinga/bazinga# cp style-improved.css ~/.bazinga/style.css
as3:~/.bazinga/bazinga# cp index.template ~/.bazinga/index.template
as3:~/.bazinga/bazinga# cd ~/.bazinga/
as3:~/.bazinga# nano bazinga.conf
as3:~/.bazinga# cat bazinga.conf
显示:
# bazinga configuration file
# user identification
BLOG_OWNER: "ym"
BLOG_EMAIL: "xx@12.com"
BLOG_WEBSITE: "http://bzg.brite.biz" (此处改为自己的域名地址)
# directory where the local bazinga structure is created
BLOG_DIRECTORY: "/root/bazinga-blog" (此处指定创建博客的根目录的地方)
# blog title
BLOG_TITLE: "ym's bazinga blog"
# blog subtitle
BLOG_SUBTITLE: "it is only half the truth ..."
# other stuff
# max entries of articles on main page
MAX_ARTICLES_MAIN: "5"
# color theme for syntax highlighting
# for a complete list, execute "highlight --list-themes"
HIGHLIGHT_THEME: "zenburn"
# blog look and feel
LATEX_FGCOLOR: "rgb 1.0 1.0 1.0"
LATEX_BGCOLOR: "Transparent"
LATEX_DPI: "150"
# FTP push information
PUSH_HOST: "YOUR_HOSTNAME"
PUSH_LOGIN: "YOUR_USERNAME"
PUSH_PASSWD: "YOUR_PASSWORD"
PUSH_PATH: "/PATH/TO/FTPDIR"
PUSH_PORT: "21"
as3:~/.bazinga# bzg (查看bzg的用法)
发贴方法:(分为3步)
as3:~/.bazinga# bzg generate article > test4.txt
(在当前目录下,会生成test4.txt)
as3:~/.bazinga# nano test4.txt
as3:~/.bazinga# cat test4.txt
category: "articles"
title: "test4(测试4)" (标题不支持纯中文。可先写英文,再写中文)
author: "ym"
website: "http://bzg.brite.biz"
email: "xx@12.com"
date: "2013-11-29"
time: "14:35"
tags: "misc"
START_TEXT
这是测试4. (这是正文)
END_TEXT (这里START_TEXT和END_TEXT不要删除。正文就写在这2者的中间)
as3:~/.bazinga# bzg add test4.txt
>> Content file seems to be correct.
>> Added 'fa17db6884183b40' to articles.
as3:~/.bazinga# bzg update
as3:~/.bazinga# cd /root/bazinga-blog
as3:~/bazinga-blog# ls
articles css feed.xml index.html pages tags
可见 ~/bazinga-blog/果然是静态网站的根目录。
演示站点:http://bzg.brite.biz/
项目地址:https://github.com/ap0calypse/bazinga
注意:博客的首页只能显示最近5篇文章,更多的文章不能显示。它也没有分页功能。要查看最近5篇文章之前的文章 ,可点击首页右上角的get feed链接,通过feed reader去查看。
cd ~/.bazinga/
git clone https://github.com/ap0calypse/bazinga.git
cd bazinga
as3:~/.bazinga/bazinga# ls
AUTHORS bzg examples LICENSE README
as3:~/.bazinga/bazinga# ln -s ~/.bazinga/bazinga/bzg /usr/local/bin/bzg
as3:~/.bazinga/bazinga# cp examples/* ~/.bazinga/bazinga
as3:~/.bazinga/bazinga# ls
AUTHORS bzg example-config examples index.template LICENSE README style-improved.css
as3:~/.bazinga/bazinga# cp example-config ~/.bazinga/bazinga.conf
as3:~/.bazinga/bazinga# cp style-improved.css ~/.bazinga/style.css
as3:~/.bazinga/bazinga# cp index.template ~/.bazinga/index.template
as3:~/.bazinga/bazinga# cd ~/.bazinga/
as3:~/.bazinga# nano bazinga.conf
as3:~/.bazinga# cat bazinga.conf
显示:
# bazinga configuration file
# user identification
BLOG_OWNER: "ym"
BLOG_EMAIL: "xx@12.com"
BLOG_WEBSITE: "http://bzg.brite.biz" (此处改为自己的域名地址)
# directory where the local bazinga structure is created
BLOG_DIRECTORY: "/root/bazinga-blog" (此处指定创建博客的根目录的地方)
# blog title
BLOG_TITLE: "ym's bazinga blog"
# blog subtitle
BLOG_SUBTITLE: "it is only half the truth ..."
# other stuff
# max entries of articles on main page
MAX_ARTICLES_MAIN: "5"
# color theme for syntax highlighting
# for a complete list, execute "highlight --list-themes"
HIGHLIGHT_THEME: "zenburn"
# blog look and feel
LATEX_FGCOLOR: "rgb 1.0 1.0 1.0"
LATEX_BGCOLOR: "Transparent"
LATEX_DPI: "150"
# FTP push information
PUSH_HOST: "YOUR_HOSTNAME"
PUSH_LOGIN: "YOUR_USERNAME"
PUSH_PASSWD: "YOUR_PASSWORD"
PUSH_PATH: "/PATH/TO/FTPDIR"
PUSH_PORT: "21"
as3:~/.bazinga# bzg (查看bzg的用法)
发贴方法:(分为3步)
as3:~/.bazinga# bzg generate article > test4.txt
(在当前目录下,会生成test4.txt)
as3:~/.bazinga# nano test4.txt
as3:~/.bazinga# cat test4.txt
category: "articles"
title: "test4(测试4)" (标题不支持纯中文。可先写英文,再写中文)
author: "ym"
website: "http://bzg.brite.biz"
email: "xx@12.com"
date: "2013-11-29"
time: "14:35"
tags: "misc"
START_TEXT
这是测试4. (这是正文)
END_TEXT (这里START_TEXT和END_TEXT不要删除。正文就写在这2者的中间)
as3:~/.bazinga# bzg add test4.txt
>> Content file seems to be correct.
>> Added 'fa17db6884183b40' to articles.
as3:~/.bazinga# bzg update
as3:~/.bazinga# cd /root/bazinga-blog
as3:~/bazinga-blog# ls
articles css feed.xml index.html pages tags
可见 ~/bazinga-blog/果然是静态网站的根目录。
演示站点:http://bzg.brite.biz/
项目地址:https://github.com/ap0calypse/bazinga
注意:博客的首页只能显示最近5篇文章,更多的文章不能显示。它也没有分页功能。要查看最近5篇文章之前的文章 ,可点击首页右上角的get feed链接,通过feed reader去查看。