发新话题
打印

【分享】改变首页上的时间

【分享】改变首页上的时间

首页面上每篇文章左上角都有时间,默认是某年某月某日,如果觉得不爽,那么可以改成如下:
2006年8月11日 22:01:42
2006-8-11 22:01
等等,当然,你也可以自己组合,也可以不要时间。

说明和演示如下如下:
<#article/posttime/longdate#>2006年8月11日
<#article/posttime/shortdate#>2006-8-11
<#article/posttime/longtime#>22:01:42
<#article/posttime/shorttime#>22:01

修改方法:模板下的b_article-multi.html文件,找到<#article/posttime/longdate#>
修改为你想要的即可,个人觉得<#article/posttime/shortdate#><#article/posttime/shorttime#>这样的组合比较好
完成后重建文件即可

最后,觉得可以多看下技术文档区的帖子,特别是老大发的模板标签的帖子。

TOP

谢谢!

TOP

<#article/posttime/shortdate#><#article/posttime/shorttime#>
个人感觉这样好些吧

TOP

发新话题