快速开始
从栏目、模型、模板三个角度理解前台页面。
快速开始
基本流程
- 在后台创建内容模型。
- 创建栏目并选择模型。
- 为栏目配置列表模板、详情模板或单页模板。
- 在主题目录编写
.html模板。
模板入口
{template "header.html"}
<section class="site-shell">
<h1>{$category.name}</h1>
<p>{$category.description}</p>
</section>
{template "footer.html"}
提示
列表页优先读取栏目配置的 list_template,详情页优先读取栏目配置的 show_template。