模板结构
# 概述
本文帮助您快速了解如何制作Fastcms模板文件,简单的说,其原理就是静态的html文件加网站标签组成Fastcms模板文件,标签是基于Freemarker实现
# 模板的组成
模板的zip压缩包解压后,必须为以下结构,方可安装成功
template
├── static
│ └── css
│ │ └── style.css
│ └── js
| └── fastcms.js
├── _layout.html
├── _template.properties
└── article.html
└── article_list.html
└── index.html
└── page.html
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 模板文件说明
文件 | 说明 |
---|---|
static | 模板静态资源目录 |
_layout.html | 模板布局文件 |
article.html | 文章详情默认模板文件 |
article_list.html | 文章列表默认模板文件 |
index.html | 首页文件 |
page.html | 文章页面默认页面 |
_template.properties | 模板描述文件 |
提示
_template.properties文件为必须文件,且必须有以下属性,并且template.id的值不能重复,否则会安装失败
template.path的值必须跟模板的zip压缩包文件名一致,否则会找不到模板文件
template.id=www.fastcms.com
template.name=fastcms
template.path=/fastcms/
template.version=0.0.1
template.provider=wjun_java@163.com
template.description=my fastcms site
1
2
3
4
5
6
2
3
4
5
6
上次更新: 2022/02/27, 02:44:28