Skip to content

Commit 0002054

Browse files
committed
25/4/18
1 parent be6ef5f commit 0002054

File tree

11 files changed

+527
-648
lines changed

11 files changed

+527
-648
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"cache_date": "2025-04-13", "page_authors": {}}
1+
{"cache_date": "2025-04-18", "page_authors": {}}

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
- run: pip install markdown-callouts
3333
# - run: pip install mkdocs-minify-plugin
3434
- run: pip install mkdocs-rss-plugin
35-
# - run: pip install jieba
3635
# - run: pip install mkdocs-open-in-new-tab
3736
- run: pip install pymdown-extensions
3837
# - run: pip install mkdocs-glightbox

docs/about/geren.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ status: new
3030
<!-- <p style="text-align: center; font-size: 35px; "><strong>A college student in Chongqing</strong></p> -->
3131

3232
<center><font size=6 color= #757575>
33-
观史知今,当思进退,读书明志可识春秋
33+
观史知今,当思进退,读书明志可识春秋
34+
<br>
3435

3536
——Wcowin </font></center>
3637

docs/blog/posts/update2025.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ readtime: 2
1212

1313
## </p><h1 id="01" name="01"><strong>2025-04-10</strong></h1><p>
1414
* 优化网站流畅度(玄学)
15-
* 优化[友链](https://wcowin.work/link/)统计方式,更加准确计数
15+
* 优化[友链](../../link.md)统计方式,更加准确计数
1616
* 修复评论区重定位的bug,防止他人网站测试评论区导致评论区覆盖到我的网站
1717

1818
## </p><h1 id="01" name="01"><strong>2025-03-30</strong></h1><p>

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ comments: false
2727
- :material-notebook-edit-outline:{ .lg .middle } __导航栏__
2828

2929
---
30-
![image](https://pic3.zhimg.com/80/v2-b9ae6898d33359da6be815bf60626af2_1440w.webp){ class="responsive-image" align=right width="340" height="226" style="border-radius: 25px;" }
30+
![image](https://pic3.zhimg.com/80/v2-b9ae6898d33359da6be815bf60626af2_1440w.webp){ class="responsive-image" loading="lazy" align=right width="340" height="226" style="border-radius: 25px;" }
3131

3232
- [x] 通过{==目录==}以打开文章
3333
- [x] 搜索{~~~>关键词~~}查询文章
Lines changed: 98 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,118 @@
11
<!-- Footer -->
22
<footer class="md-footer">
3-
43
<!-- Link to previous and/or next page -->
5-
{% if "navigation.footer" in features %}
6-
{% if page.previous_page or page.next_page %}
7-
{% if page.meta and page.meta.hide %}
8-
{% set hidden = "hidden" if "footer" in page.meta.hide %}
9-
{% endif %}
10-
<nav
11-
class="md-footer__inner md-grid"
12-
aria-label="{{ lang.t('footer') }}"
13-
{{ hidden }}
14-
>
15-
16-
<!-- Link to previous page -->
17-
{% if page.previous_page %}
18-
{% set direction = lang.t("footer.previous") %}
19-
<a
20-
href="{{ page.previous_page.url | url }}"
21-
class="md-footer__link md-footer__link--prev"
22-
aria-label="{{ direction }}: {{ page.previous_page.title | e }}"
23-
>
24-
<div class="md-footer__button md-icon">
25-
{% set icon = config.theme.icon.previous or "material/arrow-left" %}
26-
{% include ".icons/" ~ icon ~ ".svg" %}
27-
</div>
28-
<div class="md-footer__title">
29-
<span class="md-footer__direction">
30-
{{ direction }}
31-
</span>
32-
<div class="md-ellipsis">
33-
{{ page.previous_page.title }}
34-
</div>
35-
</div>
36-
37-
</a>
38-
{% endif %}
4+
{% if "navigation.footer" in features %} {% if page.previous_page or
5+
page.next_page %} {% if page.meta and page.meta.hide %} {% set hidden =
6+
"hidden" if "footer" in page.meta.hide %} {% endif %}
7+
<nav
8+
class="md-footer__inner md-grid"
9+
aria-label="{{ lang.t('footer') }}"
10+
{{
11+
hidden
12+
}}
13+
>
14+
<!-- Link to previous page -->
15+
{% if page.previous_page %} {% set direction = lang.t("footer.previous") %}
16+
<a
17+
href="{{ page.previous_page.url | url }}"
18+
class="md-footer__link md-footer__link--prev"
19+
aria-label="{{ direction }}: {{ page.previous_page.title | e }}"
20+
>
21+
<div class="md-footer__button md-icon">
22+
{% set icon = config.theme.icon.previous or "material/arrow-left" %} {%
23+
include ".icons/" ~ icon ~ ".svg" %}
24+
</div>
25+
<div class="md-footer__title">
26+
<span class="md-footer__direction"> {{ direction }} </span>
27+
<div class="md-ellipsis">{{ page.previous_page.title }}</div>
28+
</div>
29+
</a>
30+
{% endif %}
3931

40-
<!-- Link to next page -->
41-
{% if page.next_page %}
42-
{% set direction = lang.t("footer.next") %}
43-
<a
44-
href="{{ page.next_page.url | url }}"
45-
class="md-footer__link md-footer__link--next"
46-
aria-label="{{ direction }}: {{ page.next_page.title | e }}"
47-
>
48-
<div class="md-footer__title">
49-
<span class="md-footer__direction">
50-
{{ direction }}
51-
</span>
52-
<div class="md-ellipsis">
53-
{{ page.next_page.title }}
54-
</div>
55-
</div>
56-
<div class="md-footer__button md-icon">
57-
{% set icon = config.theme.icon.next or "material/arrow-right" %}
58-
{% include ".icons/" ~ icon ~ ".svg" %}
59-
</div>
60-
</a>
61-
{% endif %}
62-
</nav>
32+
<!-- Link to next page -->
33+
{% if page.next_page %} {% set direction = lang.t("footer.next") %}
34+
<a
35+
href="{{ page.next_page.url | url }}"
36+
class="md-footer__link md-footer__link--next"
37+
aria-label="{{ direction }}: {{ page.next_page.title | e }}"
38+
>
39+
<div class="md-footer__title">
40+
<span class="md-footer__direction"> {{ direction }} </span>
41+
<div class="md-ellipsis">{{ page.next_page.title }}</div>
42+
</div>
43+
<div class="md-footer__button md-icon">
44+
{% set icon = config.theme.icon.next or "material/arrow-right" %} {%
45+
include ".icons/" ~ icon ~ ".svg" %}
46+
</div>
47+
</a>
6348
{% endif %}
64-
{% endif %}
49+
</nav>
50+
{% endif %} {% endif %}
6551

6652
<!-- Further information -->
6753
<div class="md-footer-meta md-typeset">
6854
<div class="md-footer-meta__inner md-grid">
6955
{% include "partials/copyright.html" %}
7056
<div class="footer-visit-count">
71-
<span>本站访问量:</span>
72-
<script async src="//finicounter.eu.org/finicounter.js"></script>
73-
<span id="finicount_views"></span>
74-
&nbsp;|&nbsp;
75-
<a href="https://icp.gov.moe/?keyword=20230640" target="_blank" class="icp-link">萌ICP备20230640号</a>
76-
&nbsp;|&nbsp;
77-
<div class="runtime-info">
78-
<p style="text-align: center;">
79-
<span>本站已经运行</span>
80-
<span id='box1'></span>
81-
</p>
82-
</div>
57+
<span>本站访问量:</span>
58+
<script async src="//finicounter.eu.org/finicounter.js"></script>
59+
<span id="finicount_views"></span>
60+
&nbsp;|&nbsp;
61+
<a
62+
href="https://icp.gov.moe/?keyword=20230640"
63+
target="_blank"
64+
rel="noopener noreferrer"
65+
class="icp-link"
66+
>萌ICP备20230640号</a
67+
>
68+
&nbsp;|&nbsp;
69+
<span class="runtime-info">
70+
<span>本站已经运行</span>
71+
<span id="box1"></span>
72+
</span>
8373
</div>
84-
8574
<script>
86-
function timingTime() {
87-
const start = '2022-10-20 00:00:00';
88-
const startTime = new Date(start).getTime();
89-
const currentTime = new Date().getTime();
90-
const difference = currentTime - startTime;
91-
const m = Math.floor(difference / 1000);
92-
const mm = m % 60; // 秒
93-
const f = Math.floor(m / 60);
94-
const ff = f % 60; // 分钟
95-
const s = Math.floor(f / 60); // 小时
96-
const ss = s % 24;
97-
const day = Math.floor(s / 24); // 天数
98-
return `${day}${ss}${ff}${mm}秒`;
99-
}
100-
101-
setInterval(() => {
102-
document.getElementById('box1').innerHTML = timingTime();
103-
}, 1000);
75+
function timingTime() {
76+
const start = "2022-10-20T00:00:00";
77+
const startTime = new Date(start).getTime();
78+
const now = Date.now();
79+
let diff = Math.floor((now - startTime) / 1000);
80+
const days = Math.floor(diff / 86400);
81+
diff %= 86400;
82+
const hours = Math.floor(diff / 3600);
83+
diff %= 3600;
84+
const minutes = Math.floor(diff / 60);
85+
const seconds = diff % 60;
86+
return `${days}${hours}${minutes}${seconds}秒`;
87+
}
88+
setInterval(() => {
89+
const el = document.getElementById("box1");
90+
if (el) el.textContent = timingTime();
91+
}, 1000);
10492
</script>
105-
93+
10694
<style>
107-
.footer-visit-count {
108-
display: flex;
109-
justify-content: center;
110-
align-items: center;
111-
height: fit-content;
112-
min-height: 55px; /* 根据实际情况调整此高度 */
95+
.footer-visit-count {
96+
display: flex;
97+
flex-wrap: wrap;
98+
justify-content: center;
99+
align-items: center;
100+
min-height: 40px;
101+
gap: 0.5em;
102+
}
103+
@media (max-width: 768px) {
104+
.runtime-info {
105+
display: none;
113106
}
114-
115-
@media (max-width: 768px) {
116-
.runtime-info {
117-
display: none;
118-
}
119-
120-
.icp-link {
121-
display: block;
122-
text-align: center;
123-
}
107+
.icp-link {
108+
display: block;
109+
text-align: center;
124110
}
111+
}
125112
</style>
126-
127-
{% if config.extra.social %}
128-
{% include "partials/social.html" %}
129-
{% endif %}
113+
114+
{% if config.extra.social %} {% include "partials/social.html" %} {% endif
115+
%}
130116
</div>
131117
</div>
132-
</footer>
118+
</footer>

0 commit comments

Comments
 (0)