This commit is contained in:
@@ -30,35 +30,36 @@
|
||||
<div class="item__slant"></div>
|
||||
<div class="item__slant item__slant--white"></div>
|
||||
<div class="item__main">
|
||||
<#if article.articlePutTop>
|
||||
<sup class="ft__red">
|
||||
${topArticleLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
<#if article.hasUpdated>
|
||||
<sup>
|
||||
<a class="ft__red" href="${servePath}${article.articlePermalink}">
|
||||
<span class="item__sup">
|
||||
<#if article.articlePutTop>
|
||||
<sup class="ft__red">
|
||||
${topArticleLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
<#if article.hasUpdated>
|
||||
<sup class="ft__red">
|
||||
${updatedLabel}
|
||||
</a>
|
||||
</sup>
|
||||
</#if>
|
||||
</sup>
|
||||
</#if>
|
||||
</span>
|
||||
<h2 class="item__title">
|
||||
<a rel="bookmark" href="${servePath}${article.articlePermalink}">
|
||||
${article.articleTitle}
|
||||
</a>
|
||||
</h2>
|
||||
<#list article.articleTags?split(",") as articleTag>
|
||||
<#if articleTag_index == 0>
|
||||
<div class="ico ico--${article_index % 10}"></div>
|
||||
<#if article.category??>
|
||||
<a class="item__tag" href="${servePath}/category/${article.category.categoryURI}">${article.category.categoryTitle}</a>
|
||||
<#else>
|
||||
<a rel="tag" class="item__tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
|
||||
${articleTag}
|
||||
</a>
|
||||
<#list article.articleTags?split(",") as articleTag>
|
||||
<#if articleTag_index == 0>
|
||||
<div class="ico ico--${article_index % 10}"></div>
|
||||
<#if article.category??>
|
||||
<a class="item__tag"
|
||||
href="${servePath}/category/${article.category.categoryURI}">${article.category.categoryTitle}</a>
|
||||
<#else>
|
||||
<a rel="tag" class="item__tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
|
||||
${articleTag}
|
||||
</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
</#list>
|
||||
</#list>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -73,10 +74,10 @@
|
||||
</#if>
|
||||
<#list paginationPageNums as paginationPageNum>
|
||||
<#if paginationPageNum == paginationCurrentPageNum>
|
||||
<span class="pagination__item pagination__item--current">${paginationPageNum}</span>
|
||||
<span class="pagination__item pagination__item--current">${paginationPageNum}</span>
|
||||
<#else>
|
||||
<a class="pagination__item"
|
||||
href="${servePath}${path}?p=${paginationPageNum}">${paginationPageNum}</a>
|
||||
<a class="pagination__item"
|
||||
href="${servePath}${path}?p=${paginationPageNum}">${paginationPageNum}</a>
|
||||
</#if>
|
||||
</#list>
|
||||
<#if paginationPageNums?last != paginationPageCount>
|
||||
@@ -86,4 +87,4 @@
|
||||
<a href="${servePath}${path}?p=${paginationNextPageNum}" class="pagination__item">→</a>
|
||||
</#if>
|
||||
</nav>
|
||||
</#if>
|
||||
</#if>
|
||||
|
@@ -41,16 +41,20 @@
|
||||
<div class="post wrapper wrapper--miner">
|
||||
<h2 class="item__title">
|
||||
<a rel="bookmark" href="${servePath}${article.articlePermalink}">
|
||||
${article.articleTitle}
|
||||
${article.articleTitle}
|
||||
</a>
|
||||
<#if article.articlePutTop>
|
||||
<sup>
|
||||
${topArticleLabel}
|
||||
</sup>
|
||||
<sup>
|
||||
${topArticleLabel}
|
||||
</sup>
|
||||
</#if>
|
||||
</h2>
|
||||
<div class="ft__fade item__meta">
|
||||
Published on
|
||||
<#if article.articleCreateDate?datetime != article.articleUpdateDate?datetime>
|
||||
Updated on
|
||||
<#else>
|
||||
Published on
|
||||
</#if>
|
||||
<time>
|
||||
<#setting locale="en_US">
|
||||
${article.articleUpdateDate?string["MMM d, yyyy"]}
|
||||
@@ -64,25 +68,25 @@
|
||||
</#if>
|
||||
</div>
|
||||
<div class="item__tags">
|
||||
<#list article.articleTags?split(",") as articleTag>
|
||||
<a rel="tag" class="tag tag--${articleTag_index}" href="${servePath}/tags/${articleTag?url('UTF-8')}">
|
||||
<b># ${articleTag}</b>
|
||||
</a>
|
||||
</#list>
|
||||
<#list article.articleTags?split(",") as articleTag>
|
||||
<a rel="tag" class="tag tag--${articleTag_index}" href="${servePath}/tags/${articleTag?url('UTF-8')}">
|
||||
<b># ${articleTag}</b>
|
||||
</a>
|
||||
</#list>
|
||||
</div>
|
||||
<div class="vditor-reset">
|
||||
${article.articleContent}
|
||||
<#if "" != article.articleSign.signHTML?trim>
|
||||
<div>
|
||||
${article.articleSign.signHTML}
|
||||
</div>
|
||||
</#if>
|
||||
${article.articleContent}
|
||||
<#if "" != article.articleSign.signHTML?trim>
|
||||
<div>
|
||||
${article.articleSign.signHTML}
|
||||
</div>
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post__toc">
|
||||
<#if article?? && article.articleToC?? && article.articleToC?size > 0>
|
||||
<#include "../../common-template/toc.ftl"/>
|
||||
</#if>
|
||||
<#if article?? && article.articleToC?? && article.articleToC?size > 0>
|
||||
<#include "../../common-template/toc.ftl"/>
|
||||
</#if>
|
||||
</div>
|
||||
<div class="body--gray post__gray">
|
||||
<div class="wrapper comment">
|
||||
@@ -118,17 +122,17 @@
|
||||
</span>
|
||||
<span class="post__arrow">
|
||||
<#if previousArticlePermalink??>
|
||||
<a href="${servePath}${previousArticlePermalink}" rel="prev"
|
||||
class="vditor-tooltipped__n vditor-tooltipped"
|
||||
pjax-title="${previousArticleTitle}"
|
||||
aria-label="${previousArticleLabel}: ${previousArticleTitle}">←</a>
|
||||
<a href="${servePath}${previousArticlePermalink}" rel="prev"
|
||||
class="vditor-tooltipped__n vditor-tooltipped"
|
||||
pjax-title="${previousArticleTitle}"
|
||||
aria-label="${previousArticleLabel}: ${previousArticleTitle}">←</a>
|
||||
</#if>
|
||||
|
||||
<#if nextArticlePermalink??>
|
||||
<a href="${servePath}${nextArticlePermalink}" rel="next"
|
||||
class="vditor-tooltipped__n vditor-tooltipped"
|
||||
pjax-title="${nextArticleTitle}"
|
||||
aria-label="${nextArticleLabel}: ${nextArticleTitle}">→</a>
|
||||
<a href="${servePath}${nextArticlePermalink}" rel="next"
|
||||
class="vditor-tooltipped__n vditor-tooltipped"
|
||||
pjax-title="${nextArticleTitle}"
|
||||
aria-label="${nextArticleLabel}: ${nextArticleTitle}">→</a>
|
||||
</#if>
|
||||
<a href="javascript:Util.goTop()" class="vditor-tooltipped__n vditor-tooltipped"
|
||||
aria-label="${goTopLabel}">↑</a>
|
||||
@@ -137,7 +141,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<#if pjax><!---- pjax {#pjax} end ----></#if>
|
||||
<#if pjax><!---- pjax {#pjax} end ----></#if>
|
||||
</main>
|
||||
<#include "footer.ftl">
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@@ -318,6 +318,11 @@ a:active, a:focus, a:hover {
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
&__sup {
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
}
|
||||
|
||||
&__slant {
|
||||
transform: rotate(-10deg) translate(10px, -10px);
|
||||
opacity: .7;
|
||||
@@ -811,4 +816,4 @@ a:active, a:focus, a:hover {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user