1 Star 0 Fork 14

n040661/jpress-perfree-simple

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 6.10 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">
#if(option('notice_content') != null)
<div class="layui-card list-article-box">
<div class="layui-card-body" style="padding:10px 20px 10px 20px;">
<i class="fa fa-bullhorn fa-lg"></i>
<span class="notice" style="font-size: 1.1em;margin-left: 5px;">#option('notice_content')</span>
</div>
</div>
#end
<!-- 置顶文章start -->
#articles(flag="top")
#for(article : articles)
<div class="layui-card list-article-box">
<div class="layui-card-body">
#if(option('page_article_thumbnail') == null || option('page_article_thumbnail') == '手动上传缩略图')
#if(article.thumbnail != null)
<a class="article-img pjax" href="#(article.url ??)">
<img src="#(article.thumbnail ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</a>
#end
#else
#if(article.showImage != null)
<a class="article-img pjax" href="#(article.url ??)">
<img src="#(article.showImage ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</a>
#end
#end
<div class="article-box-content">
<h2 class="article-title">
<span class="top-tip">置顶</span><a href="#(article.url ??)" class="pjax">#(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>
<a class="read-all-btn pjax" href="#(article.url ??)">阅读全文</a>
</div>
</div>
</div>
#end
#end
<!-- 置顶文章end -->
#articlePage(pageSize=6)
<!-- 文章列表start -->
#for(article : articlePage.list)
<div class="layui-card list-article-box">
<div class="layui-card-body">
#if(option('page_article_thumbnail') == null || option('page_article_thumbnail') == '手动上传缩略图')
#if(article.thumbnail != null)
<a class="article-img pjax" href="#(article.url ??)">
<img src="#(article.thumbnail ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</a>
#end
#else
#if(article.showImage != null)
<a class="article-img pjax" href="#(article.url ??)">
<img src="#(article.showImage ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</a>
#end
#end
<div class="article-box-content">
<h2 class="article-title">
<a href="#(article.url ??)" class="pjax">#(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>
<a class="read-all-btn pjax" href="#(article.url ??)">阅读全文</a>
</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> 这家伙很懒,还没发表文章~
</div>
</div>
</div>
#end
<!-- 文章列表end -->
<div class="layui-card">
<div class="layui-card-body">
#articlePaginate(firstGotoIndex=true)
<div class="perfree-page-box">
#for(page : pages)
<a class="page-item #(page.style) pjax" href="#(page.url ??)">#(page.text ??)</a>
#end
</div>
#end
</div>
</div>
#end
</div>
</div>
#end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/n040661/jpress-perfree-simple.git
git@gitee.com:n040661/jpress-perfree-simple.git
n040661
jpress-perfree-simple
jpress-perfree-simple
master

搜索帮助