💯 子模块目录调整
This commit is contained in:
90
Medium/article-list.ftl
Normal file
90
Medium/article-list.ftl
Normal file
@@ -0,0 +1,90 @@
|
||||
<#--
|
||||
|
||||
Solo - A small and beautiful blogging system written in Java.
|
||||
Copyright (c) 2010-2018, b3log.org & hacpai.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
-->
|
||||
<div class="fn-clear article__wrap">
|
||||
<#list articles as article>
|
||||
<article class="article__item
|
||||
<#if article_index == 0 || article_index == 10>article__item--big
|
||||
<#elseif article_index > 0 && article_index < 5>article__item--small
|
||||
<#elseif article_index > 4 && article_index < 8>article__item--big
|
||||
<#elseif article_index == 8 || article_index == 9>article__item--mid
|
||||
<#elseif article_index > 10 && article_index < 15>article__item--small
|
||||
<#elseif article_index > 14 && article_index < 18>article__item--big
|
||||
<#elseif article_index > 17 && article_index < 20>article__item--mid
|
||||
<#else>article__item--big
|
||||
</#if>">
|
||||
<header class="article__panel">
|
||||
<div class="article__main">
|
||||
<h2 class="article__title">
|
||||
<a rel="bookmark" href="${servePath}${article.articlePermalink}">
|
||||
${article.articleTitle}
|
||||
</a>
|
||||
<#if article.articlePutTop>
|
||||
<sup>
|
||||
${topArticleLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
<#if article.hasUpdated>
|
||||
<sup>
|
||||
${updatedLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
</h2>
|
||||
<div class="content-reset article__content">
|
||||
${article.articleAbstract}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="article__meta ft-gray fn-flex">
|
||||
<time>
|
||||
${article.articleCreateDate?string("yyyy-MM-dd")}
|
||||
</time> •
|
||||
<a href="${servePath}${article.articlePermalink}#comments" class="ft-gray">
|
||||
${article.articleCommentCount} ${commentLabel}
|
||||
</a> •
|
||||
<a href="${servePath}${article.articlePermalink}" class="ft-gray">
|
||||
${article.articleViewCount} ${viewLabel}
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
</#list>
|
||||
</div>
|
||||
|
||||
<#if 0 != paginationPageCount>
|
||||
<nav class="pagination">
|
||||
<#if 1 != paginationPageNums?first>
|
||||
<a href="${servePath}${path}/${paginationPreviousPageNum}" class="pagination__item">«</a>
|
||||
<a class="pagination__item" href="${servePath}${path}/1">1</a>
|
||||
<span class="pagination__item pagination__omit">...</span>
|
||||
</#if>
|
||||
<#list paginationPageNums as paginationPageNum>
|
||||
<#if paginationPageNum == paginationCurrentPageNum>
|
||||
<span class="pagination__item pagination__item--active">${paginationPageNum}</span>
|
||||
<#else>
|
||||
<a class="pagination__item" href="${servePath}${path}/${paginationPageNum}">${paginationPageNum}</a>
|
||||
</#if>
|
||||
</#list>
|
||||
<#if paginationPageNums?last != paginationPageCount>
|
||||
<span class="pagination__item pagination__omit">...</span>
|
||||
<a href="${servePath}${path}/${paginationPageCount}" class="pagination__item">${paginationPageCount}</a>
|
||||
<a href="${servePath}${path}/${paginationNextPageNum}" class="pagination__item">»</a>
|
||||
</#if>
|
||||
</nav>
|
||||
</#if>
|
||||
Reference in New Issue
Block a user