Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bg5sbk/MiniCMS

至简的个人网站内容管理系统
https://github.com/bg5sbk/MiniCMS

Last synced: about 2 months ago
JSON representation

至简的个人网站内容管理系统

Awesome Lists containing this project

README

        

介绍
====

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

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

安装
====

1. 下载最新版的install.php,上传到网站根目录
2. 浏览器访问根目录下instal.php,填入网站信息和初始账号密码
3. 开始安装

结构
====

```
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() // 文章标签
```