Skip to content

Commit b3631e7

Browse files
author
cenlj
committed
auto deploy cenlj/hugo-main@4e95adfe26dbf14e1b018d9b8fa2ac6e947e246c
1 parent a2e796c commit b3631e7

File tree

35 files changed

+2108
-35
lines changed

35 files changed

+2108
-35
lines changed

404.html

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,18 @@ <h3 class="search-result--title section-title"></h3>
274274

275275
document.getElementById('searchInput').setAttribute('value', searchKeyword);
276276
</script><footer class="site-footer">
277+
277278
<section class="copyright">
279+
<div class="footer-info">
280+
本博客已稳定运行:<span id="runningdays"></span>
281+
</div>
278282
&copy;
279283

280284
2025 小高山的个人博客 All rights reserved. 禁止转载,如需引用,请注明文章链接。
281285

282286

283287

284-
<div style="margin-top:8px;font-size:0.9em;">
288+
<div style="margin-top:10px;font-size:0.9em;">
285289
<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2025366829号</a>
286290
</div>
287291

@@ -292,6 +296,8 @@ <h3 class="search-result--title section-title"></h3>
292296
主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.30.0">Stack</a></b><a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计
293297
</section>
294298

299+
300+
295301

296302
</footer>
297303

@@ -444,5 +450,60 @@ <h3 class="search-result--title section-title"></h3>
444450
}
445451
</script>
446452

453+
454+
<span id="runningdays"></span>
455+
<script>
456+
function updateRunningDays() {
457+
let s1 = '2025-6-30';
458+
s1 = new Date(s1.replace(/-/g, "/"));
459+
let s2 = new Date();
460+
461+
462+
let diffInMilliseconds = s2.getTime() - s1.getTime();
463+
464+
465+
let years = s2.getFullYear() - s1.getFullYear();
466+
let months = s2.getMonth() - s1.getMonth();
467+
let days = s2.getDate() - s1.getDate();
468+
let hours = s2.getHours() - s1.getHours();
469+
let minutes = s2.getMinutes() - s1.getMinutes();
470+
let seconds = s2.getSeconds() - s1.getSeconds();
471+
472+
473+
if (seconds < 0) {
474+
minutes -= 1;
475+
seconds += 60;
476+
}
477+
if (minutes < 0) {
478+
hours -= 1;
479+
minutes += 60;
480+
}
481+
if (hours < 0) {
482+
days -= 1;
483+
hours += 24;
484+
}
485+
if (days < 0) {
486+
months -= 1;
487+
488+
let prevMonth = new Date(s2.getFullYear(), s2.getMonth(), 0);
489+
days += prevMonth.getDate();
490+
}
491+
if (months < 0) {
492+
years -= 1;
493+
months += 12;
494+
}
495+
496+
497+
let result = `${years}${months}${days}${hours}${minutes}${seconds}秒`;
498+
document.getElementById('runningdays').innerHTML = result;
499+
}
500+
501+
502+
updateRunningDays();
503+
504+
setInterval(updateRunningDays, 1000);
505+
</script>
506+
507+
447508
</body>
448509
</html>

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

archives/index.html

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,18 @@ <h2 class="article-title">Emoji Support</h2>
477477

478478

479479
<footer class="site-footer">
480+
480481
<section class="copyright">
482+
<div class="footer-info">
483+
本博客已稳定运行:<span id="runningdays"></span>
484+
</div>
481485
&copy;
482486

483487
2025 小高山的个人博客 All rights reserved. 禁止转载,如需引用,请注明文章链接。
484488

485489

486490

487-
<div style="margin-top:8px;font-size:0.9em;">
491+
<div style="margin-top:10px;font-size:0.9em;">
488492
<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2025366829号</a>
489493
</div>
490494

@@ -495,6 +499,8 @@ <h2 class="article-title">Emoji Support</h2>
495499
主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.30.0">Stack</a></b><a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计
496500
</section>
497501

502+
503+
498504

499505
</footer>
500506

@@ -647,5 +653,60 @@ <h2 class="article-title">Emoji Support</h2>
647653
}
648654
</script>
649655

656+
657+
<span id="runningdays"></span>
658+
<script>
659+
function updateRunningDays() {
660+
let s1 = '2025-6-30';
661+
s1 = new Date(s1.replace(/-/g, "/"));
662+
let s2 = new Date();
663+
664+
665+
let diffInMilliseconds = s2.getTime() - s1.getTime();
666+
667+
668+
let years = s2.getFullYear() - s1.getFullYear();
669+
let months = s2.getMonth() - s1.getMonth();
670+
let days = s2.getDate() - s1.getDate();
671+
let hours = s2.getHours() - s1.getHours();
672+
let minutes = s2.getMinutes() - s1.getMinutes();
673+
let seconds = s2.getSeconds() - s1.getSeconds();
674+
675+
676+
if (seconds < 0) {
677+
minutes -= 1;
678+
seconds += 60;
679+
}
680+
if (minutes < 0) {
681+
hours -= 1;
682+
minutes += 60;
683+
}
684+
if (hours < 0) {
685+
days -= 1;
686+
hours += 24;
687+
}
688+
if (days < 0) {
689+
months -= 1;
690+
691+
let prevMonth = new Date(s2.getFullYear(), s2.getMonth(), 0);
692+
days += prevMonth.getDate();
693+
}
694+
if (months < 0) {
695+
years -= 1;
696+
months += 12;
697+
}
698+
699+
700+
let result = `${years}${months}${days}${hours}${minutes}${seconds}秒`;
701+
document.getElementById('runningdays').innerHTML = result;
702+
}
703+
704+
705+
updateRunningDays();
706+
707+
setInterval(updateRunningDays, 1000);
708+
</script>
709+
710+
650711
</body>
651712
</html>

categories/index.html

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,18 @@ <h2 class="article-title">Test With Whitespaces</h2>
487487
</nav>
488488

489489
<footer class="site-footer">
490+
490491
<section class="copyright">
492+
<div class="footer-info">
493+
本博客已稳定运行:<span id="runningdays"></span>
494+
</div>
491495
&copy;
492496

493497
2025 小高山的个人博客 All rights reserved. 禁止转载,如需引用,请注明文章链接。
494498

495499

496500

497-
<div style="margin-top:8px;font-size:0.9em;">
501+
<div style="margin-top:10px;font-size:0.9em;">
498502
<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2025366829号</a>
499503
</div>
500504

@@ -505,6 +509,8 @@ <h2 class="article-title">Test With Whitespaces</h2>
505509
主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.30.0">Stack</a></b><a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计
506510
</section>
507511

512+
513+
508514

509515
</footer>
510516

@@ -657,5 +663,60 @@ <h2 class="article-title">Test With Whitespaces</h2>
657663
}
658664
</script>
659665

666+
667+
<span id="runningdays"></span>
668+
<script>
669+
function updateRunningDays() {
670+
let s1 = '2025-6-30';
671+
s1 = new Date(s1.replace(/-/g, "/"));
672+
let s2 = new Date();
673+
674+
675+
let diffInMilliseconds = s2.getTime() - s1.getTime();
676+
677+
678+
let years = s2.getFullYear() - s1.getFullYear();
679+
let months = s2.getMonth() - s1.getMonth();
680+
let days = s2.getDate() - s1.getDate();
681+
let hours = s2.getHours() - s1.getHours();
682+
let minutes = s2.getMinutes() - s1.getMinutes();
683+
let seconds = s2.getSeconds() - s1.getSeconds();
684+
685+
686+
if (seconds < 0) {
687+
minutes -= 1;
688+
seconds += 60;
689+
}
690+
if (minutes < 0) {
691+
hours -= 1;
692+
minutes += 60;
693+
}
694+
if (hours < 0) {
695+
days -= 1;
696+
hours += 24;
697+
}
698+
if (days < 0) {
699+
months -= 1;
700+
701+
let prevMonth = new Date(s2.getFullYear(), s2.getMonth(), 0);
702+
days += prevMonth.getDate();
703+
}
704+
if (months < 0) {
705+
years -= 1;
706+
months += 12;
707+
}
708+
709+
710+
let result = `${years}${months}${days}${hours}${minutes}${seconds}秒`;
711+
document.getElementById('runningdays').innerHTML = result;
712+
}
713+
714+
715+
updateRunningDays();
716+
717+
setInterval(updateRunningDays, 1000);
718+
</script>
719+
720+
660721
</body>
661722
</html>

categories/page/2/index.html

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,18 @@ <h2 class="article-title">Test</h2>
463463
</nav>
464464

465465
<footer class="site-footer">
466+
466467
<section class="copyright">
468+
<div class="footer-info">
469+
本博客已稳定运行:<span id="runningdays"></span>
470+
</div>
467471
&copy;
468472

469473
2025 小高山的个人博客 All rights reserved. 禁止转载,如需引用,请注明文章链接。
470474

471475

472476

473-
<div style="margin-top:8px;font-size:0.9em;">
477+
<div style="margin-top:10px;font-size:0.9em;">
474478
<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2025366829号</a>
475479
</div>
476480

@@ -481,6 +485,8 @@ <h2 class="article-title">Test</h2>
481485
主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.30.0">Stack</a></b><a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计
482486
</section>
483487

488+
489+
484490

485491
</footer>
486492

@@ -633,5 +639,60 @@ <h2 class="article-title">Test</h2>
633639
}
634640
</script>
635641

642+
643+
<span id="runningdays"></span>
644+
<script>
645+
function updateRunningDays() {
646+
let s1 = '2025-6-30';
647+
s1 = new Date(s1.replace(/-/g, "/"));
648+
let s2 = new Date();
649+
650+
651+
let diffInMilliseconds = s2.getTime() - s1.getTime();
652+
653+
654+
let years = s2.getFullYear() - s1.getFullYear();
655+
let months = s2.getMonth() - s1.getMonth();
656+
let days = s2.getDate() - s1.getDate();
657+
let hours = s2.getHours() - s1.getHours();
658+
let minutes = s2.getMinutes() - s1.getMinutes();
659+
let seconds = s2.getSeconds() - s1.getSeconds();
660+
661+
662+
if (seconds < 0) {
663+
minutes -= 1;
664+
seconds += 60;
665+
}
666+
if (minutes < 0) {
667+
hours -= 1;
668+
minutes += 60;
669+
}
670+
if (hours < 0) {
671+
days -= 1;
672+
hours += 24;
673+
}
674+
if (days < 0) {
675+
months -= 1;
676+
677+
let prevMonth = new Date(s2.getFullYear(), s2.getMonth(), 0);
678+
days += prevMonth.getDate();
679+
}
680+
if (months < 0) {
681+
years -= 1;
682+
months += 12;
683+
}
684+
685+
686+
let result = `${years}${months}${days}${hours}${minutes}${seconds}秒`;
687+
document.getElementById('runningdays').innerHTML = result;
688+
}
689+
690+
691+
updateRunningDays();
692+
693+
setInterval(updateRunningDays, 1000);
694+
</script>
695+
696+
636697
</body>
637698
</html>

0 commit comments

Comments
 (0)