springboot+mybatis+beetl开发的一款CMS,支持自定义内容模型、模板标签、全站静态化等功能(功能还在不断完善中.....)
springboot 、mybatis 、beetl 、shiro 、mybatis通用mapper(整合maven方式代码生成) 、七牛云存储 、B-JUI v1.2
<#cms_category_list siteId="${site.siteId}" categoryId="0" isNav="0" var="bean">
@if(isNotEmpty(category)&&category.categoryId==bean.categoryId){
<a id="topnav_current" href="${bean.url!}">${bean.categoryName!}</a>
@}else{
<a href="${bean.url!}">${bean.categoryName!}</a>
@}
</#cms_category_list>
<#cms_category categoryId="${content.categoryId}" isParent="0" var="bean">
<span>分类:【<a href="${bean.url!}">${bean.categoryName!}</a>】</span>
</#cms_category>
<#cms_content_list siteId="${site.siteId}" categoryId="45" target="1" orderBy="2" isHot="0" hasChild="1" size="15" titleLen="15" var="content">
<div class="blogs">
<h3><a href="${content.url!}">${content.title!}</a></h3>
@if(isEmpty(content.thumb)){
<figure><img src="${resPath}/blog/images/01.jpg" ></figure>
@}else{
<figure><img src="${content.thumb}" ></figure>
@}
<ul>
<p>${content.description!}</p>
<a href="${content.url!}" target="_blank" class="readmore">阅读全文>></a>
</ul>
<p class="autor"><span>作者:${content.author!}</span>
<#cms_category categoryId="${content.categoryId}" isParent="0" var="bean">
<span>分类:【<a href="${bean.url!}">${bean.categoryName!}</a>】</span>
</#cms_category>
<span>浏览(<a href="${content.url!}">${content.viewNum!}</a>)</span>
</p>
<div class="dateview">${content.inputdate!,dateFormat="yyyy-MM-dd"}</div>
</div>
</#cms_content_list>
<#cms_content_page siteId="${site.siteId!}" titleLen="15" page="${page!}" var="content">
<div class="newblog">
<ul>
<h3><a href="${content.url!}">${content.title!}</a></h3>
<div class="autor">
<span>作者:${content.author!}</span>
<#cms_category categoryId="${content.categoryId}" isParent="0" var="bean">
<span>分类:[<a href="${bean.url!}">${bean.categoryName!}</a>]</span>
</#cms_category>
<span>浏览(<a href="${content.url!}">${content.viewNum!}</a>)</span>
</div>
<p>${content.description!}</p>
</ul>
@if(isEmpty(content.thumb)){
<figure><img src="${resPath}/blog/images/01.jpg" ></figure>
@}else{
<figure><img src="${content.thumb}" ></figure>
@}
<div class="dateview">${content.inputdate!,dateFormat="yyyy-MM-dd"}</div>
</div>
</#cms_content_page>
<#cms_pagination siteId="${site.siteId}" categoryId="${category.categoryId}" page="${page}" var="page" >
@//上一页
@${page.last}
@for( change in page.changePage){
@if(!change.isLink){
<b>${change.value!}</b>
@}else{
${change.url!}
@}
@}
@//下一页
@${page.next}
</#cms_pagination>