编译出主题默认文件
- 使用开发工具新建theme模块
- 点击theme模块对应gradle或maven的build
- 进入${theme项目}/build/buildTheme目录查看主题默认编译出的所有问题
定制自己的主题(以全局添加bootstrap为例)
注意下述目录不存在可新建,可参照${theme项目}/build/buildTheme/中目录结构
将bootstrap.css(网上下载)文件复制到src/main/webapp/css目录
将bootstrap.js(网上下载)文件复制到src/main/webapp/js目录
将${theme项目}/build/buildTheme/templates/portal_normal.ftl复制到src/main/webapp/templates目录
修改portal_normal.ftl文件head部分,添加bootstrap.css引用
<link rel="stylesheet" rel="stylesheet" href="${css_folder}/bootstrap.css" />
修改portal_normal.ftl文件body部分,添加bootstrap.js引用
<script type="text/javascript" src="${javascript_folder}/bootstrap.js"></script>
重新build项目,查看${theme项目}/build/buildTheme/templates/portal_normal.ftl文件已经是定制过的
版权声明:本文为yichengjie_c原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。