78 lines
2.9 KiB
Plaintext
78 lines
2.9 KiB
Plaintext
<#--
|
|
|
|
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/>.
|
|
|
|
-->
|
|
<#list articles as article>
|
|
<article class="article__item">
|
|
<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>
|
|
<time class="ft__gray">
|
|
${article.articleCreateDate?string("yyyy-MM-dd")}${monthLabel}
|
|
</time>
|
|
<div class="content-reset article__content">
|
|
${article.articleAbstract}
|
|
</div>
|
|
<a class="article__more" href="">More...</a>
|
|
</article>
|
|
</#list>
|
|
|
|
|
|
<#if 0 != paginationPageCount>
|
|
<nav class="fn__flex pagination">
|
|
<#if 1 != paginationPageNums?first>
|
|
<a href="${servePath}${path}?p=${paginationPreviousPageNum}" class="pagination__item fn__flex-center">« Prev</a>
|
|
</#if>
|
|
|
|
<div class="fn__flex-1 ft__center">
|
|
<#if 1 != paginationPageNums?first>
|
|
<a class="pagination__item" href="${servePath}${path}">1</a>
|
|
<span class="pagination__item">...</span>
|
|
</#if>
|
|
<#list paginationPageNums as paginationPageNum>
|
|
<#if paginationPageNum == paginationCurrentPageNum>
|
|
<span class="pagination__item pagination__item--current">${paginationPageNum}</span>
|
|
<#else>
|
|
<a class="pagination__item"
|
|
href="${servePath}${path}?p=${paginationPageNum}">${paginationPageNum}</a>
|
|
</#if>
|
|
</#list>
|
|
<#if paginationPageNums?last != paginationPageCount>
|
|
<span class="pagination__item">...</span>
|
|
<a href="${servePath}${path}?p=${paginationPageCount}"
|
|
class="pagination__item">${paginationPageCount}</a>
|
|
</#if>
|
|
</div>
|
|
|
|
<#if paginationPageNums?last != paginationPageCount>
|
|
<a href="${servePath}${path}?p=${paginationNextPageNum}" class="pagination__item fn__flex-center">Next »</a>
|
|
</#if>
|
|
</nav>
|
|
</#if> |