Update home.html
This commit is contained in:
1 parent
453de3878a
commit
681a1e7f44
1 file changed
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
{{ $publishDate := .Date }}
|
{{ $publishDate := .Date }}
|
||||||
{{ $currentTime := now }}
|
{{ $currentTime := now }}
|
||||||
{{ $timeDiff := div (sub $currentTime.Unix $publishDate.Unix) 3600 }}
|
{{ $timeDiff := div (sub $currentTime.Unix $publishDate.Unix) 3600 }}
|
||||||
<!-- 判断发布时间是否小于 48 小时 -->
|
<!-- 判断发布时间是否小于 24 小时 -->
|
||||||
{{ if lt $timeDiff 24 }}
|
{{ if lt $timeDiff 24 }}
|
||||||
<span class="new-post-message"></span>
|
<span class="new-post-message"></span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in new issue
Block a user