This commit is contained in:
小赵同学 committed 2024-08-12 11:51:03 +08:00
1 parent 69576e2e35
commit 11087a9a55
23 files changed
+371 -96

No files matched your search

+3 -3
View File
@@ -6,10 +6,10 @@
uk-scrollspy="target: > .cf-article-item; cls: uk-animation-fade; delay: 0"></div>
</div>
<script>
// 定义几个全局变量
let UserConfig = {
// 定义几个全局变量
let UserConfig = {
// 填写你的api地址
private_api_url: 'https://circle.usj.cc/',
private_api_url: 'https://fc.5b2.cn/',
// 点击加载更多时,一次最多加载几篇文章,默认10
page_turning_number: 10,
// 头像加载失败时,默认头像地址
+9 -2
View File
@@ -9,6 +9,14 @@
<div class="post">
<div class="time">{{ .Date.Format "January 2, 2006" }}</div>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<!-- 计算每篇文章的发布时间与当前时间的差值 -->
{{ $publishDate := .Date }}
{{ $currentTime := now }}
{{ $timeDiff := div (sub $currentTime.Unix $publishDate.Unix) 3600 }}
<!-- 判断发布时间是否小于 48 小时 -->
{{ if lt $timeDiff 48 }}
<span class="new-post-message"></span>
{{ end }}
</div>
{{ end }}
</div>
@@ -25,7 +33,6 @@
<a class="prev" title="上一页" href="{{ $paginator.Prev.URL }}">上一页</a>
{{ end }}
</li>
</ul>
</div>
{{ end }}
{{ end }}
+1 -1
View File
@@ -1157,7 +1157,7 @@ input[type=submit] {
/*新文章提醒样式*/
.new-post-message {
content: '';
background: url(https://usj.cc/usr/uploads/2023/01/1457247750.png) no-repeat;
background: url(https://usj.cc/pics/2023/01/1457247750.png) no-repeat;
width: 26px;
height: 14px;
background-size: contain;
+20
View File
@@ -269,6 +269,26 @@
"邹江博客",
"https://www.zoujiang.com",
"https://www.zoujiang.com/logo.jpg"
],
[
"森木志",
"https://oxxx.cn",
"https://gravatar.webp.se/avatar/5a076aa876b435fe788c8eeda004e9ec"
],
[
"土拨许",
"https://zhuo.re",
"https://cravatar.cn/avatar/126bbc02f1aef6228805d330648d9aa1"
],
[
"Jdeal",
"https://www.jdeal.cn",
"https://qn.jdeal.cn/file/favicon.ico"
],
[
"优世界",
"https://usj.cc",
"https://usj.cc/favicon.ico"
]
]
}