3 Star 33 Fork 14

perfree/jpress-perfree-simple

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
artsearch.html 3.14 KB
一键复制 编辑 原始数据 按行查看 历史
#include("./_inc/_layout.html")
#@layout()
#define content()
<div class="layui-col-xs12 layui-col-sm7 layui-col-md8 perfree-content-left">
<div class="article-box">
#articleSearchPage(pageSize=6)
#for(article : articlePage.list)
<div class="layui-card">
<div class="layui-card-body">
#if(option('page_article_thumbnail') == null || option('page_article_thumbnail') == '手动上传缩略图')
#if(article.thumbnail != null)
<div class="article-img">
<img src="#(article.thumbnail ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</div>
#end
#else
#if(article.showImage != null)
<div class="article-img">
<img src="#(article.showImage ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</div>
#end
#end
<div class="article-box-content">
<h2 class="article-title">
<a href="#(article.url ??)">#(article.title ??)</a>
</h2>
<p class="article-content">#maxLength(article.text,100)</p>
<hr class="layui-bg-gray">
<span class="article-msg">
<i class="fa fa-user-o"></i> #(article.user.nickname ??)&nbsp;
<i class="fa fa-eye"></i> #(article.view_count ??)&nbsp;
<i class="fa fa-comment-o"></i> #(article.comment_count ??)&nbsp;
<i class="fa fa-clock-o"></i> #date(article.created, "yyyy-MM-dd")
</span>
</div>
</div>
</div>
#else
<div class="layui-card">
<div class="layui-card-body">
<div class="no-article">
<i class="fa fa-bug" aria-hidden="true"></i> 没找到关于 #(keyword) 的文章,换个关键词试试~
</div>
</div>
</div>
#end
#articleSearchPaginate()
<div class="layui-card">
<div class="layui-card-body">
<div class="perfree-page-box">
#for(page : pages)
<a class="page-item #(page.style)" href="#(page.url ??)">#(page.text ??)</a>
#end
</div>
</div>
</div>
#end
#end
</div>
</div>
#end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/perfree/jpress-perfree-simple.git
git@gitee.com:perfree/jpress-perfree-simple.git
perfree
jpress-perfree-simple
jpress-perfree-simple
master

搜索帮助