Total Pageviews

Tuesday, 11 February 2014

一个基于php的静态博客程序-hari

This is just a small CMS powered by a single folder. No database is required. All you do is drag and drop images / text files into the directory you choose, and that's it. Text posts can include Markdown too. An example can be found at Haris Timeline.

from https://github.com/matthojo/Hari
下载地址:https://github.com/matthojo/Hari/archive/master.zip

# cd /var/www/
as3:/var/www# git clone https://github.com/matthojo/Hari hari
as3:/var/www# cd hari

发贴方法:
as3:/var/www/hari# cd display
as3:/var/www/hari/display# ls
Example_Group        Example_Youtube.video        
Example_Video_Group  Hari_as_an_example_image.jpg 
Example_Vimeo.video  Welcome_To_Hari.txt
as3:/var/www/hari/display# nano test1.txt
按Welcome_To_Hari.txt的内容格式,新建帖子test1.txt,格式如下:
## 测试1

这是测试1.

保存更改,网站就自动更新了。可惜所发表的帖子并无url地址。
我的示例:http://as3.brite.biz/hari/ (原本 hari目录下,有install目录,我把 install目录删除了。其实无需安装,安装了反而会不正常。把下载下来的zip文件解压,然后上传到你的网站的根目录或子目录。)

项目地址:https://github.com/matthojo/Hari