Skip to content

Commit

Permalink
完善文档
Browse files Browse the repository at this point in the history
  • Loading branch information
bg5sbk committed Dec 12, 2013
1 parent 064be5b commit e7620a8
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
项目介绍
=======

MiniCMS是一个针对个人网站设计的微型内容管理系统。它的特点是:

1. 不需要数据库在支持,只需要一个可以运行PHP的Web环境
2. 只针对个人网站设计,没有复杂的成员管理和权限设置
3. 没有分类只有标签,免除发布文章时到底该怎么分类的纠结
4. 只有“文章”和“页面”两该个系统,没有“评论”、“插件”、“主题”,让你更专注于创造内容

安装使用
=======

1. 将 mc_admin、mc_files、index.php 上传到网站根目录
2. 进入MiniCMS后台,默认帐号:admin,默认密码:admin,例如:http://1234n.com/mc-admin/
3. 进入“设置”页面修改帐号密码
4. 开始使用

目录结构
=======

```
mc-admin 后台
mc-files 内容
|--theme 主题
|--posts 文章
| |--data 数据
| |--index 索引
|--pages 页面
|--data 数据
|--index 索引
```
URL格式
=======

文章: http://1234n.com/?post/[a-z0-5]{6}
标签: http://1234n.com/?tag/[^/]+/
页面: http://1234n.com/?([-a-zA-Z0-5]+/)+

模板标签
=======

```
mc_site_name() // 网站标题
mc_site_desc() // 网站描述
mc_user_nick() // 站长昵称
mc_theme_url() // 主题文件夹中文件的URL
mc_next_post() // 循环获取文章
mc_the_name() // 文章标题
mc_the_date() // 发布日期
mc_the_time() // 发布时间
mc_the_content() // 文章内容
mc_the_tags() // 文章标签
```

0 comments on commit e7620a8

Please sign in to comment.