fix: 解决重构后自定义页面问题
1. 添加模板回退机制,当找不到指定模板时自动使用page.hbs通用模板 2. 支持在页面配置中通过template字段指定使用的模板文件 3. 更新配置文件和文档,添加template字段使用说明 Closes #10
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
title: 欢迎使用
|
||||
subtitle: 个人导航站点
|
||||
|
||||
# 指定使用的模板文件名,现有页面模板可见templates\pages
|
||||
template: home
|
||||
|
||||
categories:
|
||||
- name: 常用网站
|
||||
icon: fas fa-star
|
||||
|
||||
Reference in New Issue
Block a user