Skip to content

Commit 75b3c6f

Browse files
authored
feat: optim footer
1 parent e100809 commit 75b3c6f

File tree

1 file changed

+36
-13
lines changed

1 file changed

+36
-13
lines changed

overrides/partials/footer.html

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
<!--
2+
Copyright (c) 2016-2025 Martin Donath <martin.donath@squidfunk.com>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
123
<!-- Footer -->
224
<footer class="md-footer">
325

@@ -26,7 +48,6 @@
2648
{{ page.previous_page.title }}
2749
</div>
2850
</div>
29-
3051
</a>
3152
{% endif %}
3253

@@ -58,21 +79,23 @@
5879
<div class="md-footer-meta__inner md-grid">
5980
{% include "partials/copyright.html" %}
6081

61-
<font color="#B9B9B9">
62-
<div class="footer-visit-count" style="display: flex; justify-content: center; align-items: center;">
63-
本站访问量:
64-
<script async src="//finicounter.eu.org/finicounter.js"></script>
65-
<span id="finicount_views"></span> &nbsp;|&nbsp;
66-
</div>
67-
</font>
68-
82+
<!-- Site Visits 访客统计 -->
6983
<style>
70-
.footer-visit-count {
71-
height: fit-content;
72-
min-height: 55px;
73-
/* 根据实际情况调整此高度 */
84+
.site-visit-count {
85+
padding: 0 12px;
86+
display: flex;
87+
justify-content: center;
88+
align-items: center;
89+
font-size: 0.85rem;
90+
/* color: black; */
7491
}
7592
</style>
93+
<script async src="//finicounter.eu.org/finicounter.js"></script>
94+
<div class="site-visit-count">
95+
<span>本站访问量:</span><span id="finicount_views"></span>
96+
</div>
97+
98+
<!-- Social links -->
7699
{% if config.extra.social %}
77100
{% include "partials/social.html" %}
78101
{% endif %}

0 commit comments

Comments
 (0)