Update home.html

This commit is contained in:
小赵同学 committed 2024-09-18 13:12:32 +08:00
1 parent 453de3878a
commit 681a1e7f44
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@
{{ $publishDate := .Date }}
{{ $currentTime := now }}
{{ $timeDiff := div (sub $currentTime.Unix $publishDate.Unix) 3600 }}
<!-- 判断发布时间是否小于 48 小时 -->
<!-- 判断发布时间是否小于 24 小时 -->
{{ if lt $timeDiff 24 }}
<span class="new-post-message"></span>
{{ end }}