105 lines
3.9 KiB
Plaintext
105 lines
3.9 KiB
Plaintext
<#--
|
|
|
|
Solo - A small and beautiful blogging system written in Java.
|
|
Copyright (c) 2010-2019, 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 id="maincol">
|
|
<#list articles as article>
|
|
<div class="postwrap">
|
|
<div class="postmeta2">
|
|
<div class="meta2inner">
|
|
<div class="pyear">
|
|
<#if article.hasUpdated>
|
|
${article.articleUpdateDate?string("yyyy")}
|
|
<#else>
|
|
${article.articleCreateDate?string("yyyy")}
|
|
</#if>
|
|
</div>
|
|
<div class="pday">
|
|
<#if article.hasUpdated>
|
|
${article.articleUpdateDate?string("MM/dd")}
|
|
<#else>
|
|
${article.articleCreateDate?string("MM/dd")}
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2 class="posttitle shortline">
|
|
<a href="${servePath}${article.articlePermalink}">${article.articleTitle}</a>
|
|
</h2>
|
|
<div class="postmeta">
|
|
<#if article.articlePutTop>
|
|
${topArticleLabel}
|
|
</#if>
|
|
<#if article.hasUpdated>
|
|
${updatedLabel}
|
|
</#if>
|
|
<a href="${servePath}/authors/${article.authorId}">${article.authorName}</a>
|
|
<a href="${servePath}${article.articlePermalink}">${article.articleViewCount} ${viewLabel}</a>
|
|
</div>
|
|
<div class="clr16"></div>
|
|
<div class="postcontent breakline">${article.articleAbstract}</div>
|
|
<div class="clr"></div>
|
|
<div class="roubcornrcontent">
|
|
<span class="posttags" title="${tagLabel}">
|
|
<#list article.articleTags?split(",") as articleTag>
|
|
<a href="${servePath}/tags/${articleTag?url('UTF-8')}">
|
|
${articleTag}</a><#if articleTag_has_next>,</#if>
|
|
</#list>
|
|
</span>
|
|
<a href="${servePath}${article.articlePermalink}#comments">
|
|
<span class="postcomments" title="${commentLabel}">
|
|
${article.articleCommentCount}
|
|
</span>
|
|
</a>
|
|
<div class="clr"></div>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
</#list>
|
|
<#if 0 != paginationPageCount>
|
|
<div id="nextprevious">
|
|
<div class="nav">
|
|
<div class="wp-pagenavi">
|
|
<#if 1 != paginationPageNums?first>
|
|
<a href="${servePath}${path}">${firstPageLabel}</a>
|
|
<a id="previousPage" href="${servePath}${path}?p=${paginationPreviousPageNum}">${previousPageLabel}</a>
|
|
</#if>
|
|
<#list paginationPageNums as paginationPageNum>
|
|
<#if paginationPageNum == paginationCurrentPageNum>
|
|
<span style="color: #889;">${paginationPageNum}</span>
|
|
<#else>
|
|
<a href="${servePath}${path}?p=${paginationPageNum}">${paginationPageNum}</a>
|
|
</#if>
|
|
</#list>
|
|
<#if paginationPageNums?last != paginationPageCount>
|
|
<a id="nextPage" href="${servePath}${path}?p=${paginationNextPageNum}">${nextPagePabel}</a>
|
|
<a href="${servePath}${path}?p=${paginationPageCount}">${lastPageLabel}</a>
|
|
</#if>
|
|
${sumLabel} ${paginationPageCount} ${pageLabel}
|
|
</div>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</div>
|
|
<div class="clr"></div>
|
|
</#if>
|
|
</div>
|
|
<div class="clr"></div>
|
|
<div class="copyr">
|
|
© ${year} <a href="http://${blogHost}">${blogTitle}</a>
|
|
</div>
|
|
<div class="clr16"></div> |