diff --git a/article.ftl b/article.ftl index 3bde1b2..5ee4454 100644 --- a/article.ftl +++ b/article.ftl @@ -69,15 +69,21 @@
-
- 创建于${article.articleCreateDate?string("yyyy年MM月dd日")} + ${article.articleUpdateDate?string("yyyy.MM.dd")} 最后跟新
+
- ${article.articleViewCount} 浏览  + <#assign viewCountStr=article.articleViewCount?string('#.###')/> + <#if viewCountStr?length gt 3> + <#assign viewCount=viewCountStr?number/> + <#assign viewCountK=viewCount/1000 /> + ${viewCountK?string('#.##')}K 浏览  + <#else> + ${article.articleViewCount} 浏览  +
<#if article.articleCommentCount != 0> diff --git a/side-right.ftl b/side-right.ftl index 7c43602..d63cd1c 100644 --- a/side-right.ftl +++ b/side-right.ftl @@ -58,7 +58,14 @@
- ${article.articleViewCount}浏览 + <#assign viewCountStr=article.articleViewCount?string('#.###')/> + <#if viewCountStr?length gt 3> + <#assign viewCount=viewCountStr?number/> + <#assign viewCountK=viewCount/1000 /> + ${viewCountK?string('#.##')}K 浏览 + <#else> + ${article.articleViewCount}浏览 +
-
${article.articleViewCount}浏览 +
+ <#assign viewCountStr=article.articleViewCount?string('#.###')/> + <#if viewCountStr?length gt 3> + <#assign viewCount=viewCountStr?number/> + <#assign viewCountK=viewCount/1000 /> + ${viewCountK?string('#.##')}K 浏览 + <#else> + ${article.articleViewCount}浏览 +