这边主要记录我在博客源文件中的改动,不公示。

footer.ejs

node_modules\hexo-theme-keep\layout\_partial\footer.ejs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<footer class="footer border-box">
<!-- 自改代码 -->
<div id="footer-block">
<div id="iframe">
<iframe height="250" src="https://www.widgets.link/#/date-number-02?nc=37352f&amp;bbc=ffffff&amp;br=5&amp;bg=&amp;_b=true" frameborder="0" allowfullscreen=""></iframe>
<iframe height="250" src="https://www.widgets.link/#/count-down-04?bs=true&amp;br=10&amp;s=1&amp;bg=&amp;_b=true" frameborder="0" allowfullscreen=""></iframe>
<iframe height="250" src="https://www.widgets.link/#/fans-bilibili?upFansColor=999999&amp;upNameColor=333333&amp;bg=&amp;p=15&amp;i=04&amp;un=Q绮曜&amp;ui=519208713&amp;br=5&amp;_b=true&amp;bs=true&amp;bpc=ffffff" frameborder="0" allowfullscreen=""></iframe>
</div>
<!-- 自改代码 -->
<div class="copyright-info info-item">
©&nbsp;<span>2024</span>&nbsp;-&nbsp;2024

&nbsp;<i class="fas fa-heart icon-animate"></i>&nbsp;&nbsp;<a href="/" data-pjax-state="">绮曜</a>

</div>

<!--
<div class="theme-info info-item">
由&nbsp;<a target="_blank" href="https://hexo.io">Hexo</a>&nbsp;驱动&nbsp;&&nbsp;主题&nbsp;<a class="keep-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep</a>
</div>
-->
<!--


<div class="deploy-info info-item">

本站由 <span class="tooltip" data-tooltip-content="Cloudflare"><img src="/images/brands/cloudflare.png" ></span> 提供部署服务

</div>

-->


<div class="count-info info-item">
<!--

<span class="count-item border-box word">
<span class="item-type border-box">总字数</span>
<span class="item-value border-box word"><%= totalcount(site) %></span>
</span>

-->



</div>



<!-- 自改代码 -->
<div style="font-size: 1rem;text-align: center;">
<span id="timeDate">本站在恶劣的环境中生存了&nbsp;84&nbsp;</span>
<span id="times">07&nbsp;小时&nbsp;37&nbsp;&nbsp;39&nbsp;</span>
<script src="/js/runtime.js"></script>
</div>
<div id="StaticBadge">
<a target="_blank" rel="noopener" href="https://icp.gov.moe/?keyword=20240822" data-pjax-state="">
<img alt="Static Badge" src="https://img.shields.io/badge/%E8%90%8CICP%E5%A4%87-20240822%E5%8F%B7-green?style=for-the-badge&amp;logo=https%3A%2F%2Ficp.gov.moe%2Fmoe-icon.zip&amp;logoSize=auto&amp;labelColor=FF1485&amp;link=https%3A%2F%2Ficp.gov.moe%2F%3Fkeyword%3D20240822" >
</a>
<a target="_blank" rel="noopener" href="https://hexo.io/" data-pjax-state="">
<img alt="Static Badge" src="https://img.shields.io/badge/Powered_By-Hexo-blue?style=for-the-badge" >
</a>
<a target="_blank" rel="noopener" href="https://github.com/XPoet/hexo-theme-keep" data-pjax-state="">
<img alt="Static Badge" src="https://img.shields.io/badge/Theme-Keep_v4.2.4_By_Qiyao-blue?style=for-the-badge" >
</a>
<a target="_blank" rel="noopener" href="https://www.cloudflare.com/" data-pjax-state="">
<img alt="Static Badge" src="https://img.shields.io/badge/C_D_N-Cloudflare-F38020?style=for-the-badge&amp;logo=cloudflare&amp;logoSize=auto" >
</a>
<img alt="Static Badge" src="https://img.shields.io/badge/%E6%80%BB%E5%AD%97%E6%95%B0-<%= totalcount(site) %>-yellow?style=for-the-badge" >

</div>

</div>
<!-- 自改代码 -->
</footer>

home.styl

node_modules\hexo-theme-keep\source\css\layout\_page\home.styl

1
2
3
4
5
6
7
8
9
10
11
12
.announcement {
width 100%
padding 0 0.5rem
color var(--text-color-3)

p {
width 100%
overflow hidden
white-space normal
overflow-wrap break-word
}
}

friend-link.ejs

node_modules\hexo-theme-keep\layout\_template

1
2
3
4
5
6
7
<div class="details border-box text-ellipsis">
<div class="name border-box text-ellipsis"><%= f?.name %></div>
<div class="desc border-box text-ellipsis"><%= f?.description %><%= f?.descr %></div>
</div>
<% if (f?.siteshot) { %>
<div class="siteshot" style="background-image: url('<%- url_for(f.siteshot) %>')"></div>
<% } %>

friend-link.styl

node_modules\hexo-theme-keep\source\css\layout\_template

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
      .friends-link-item {
width 100%
height $friend-link-item-height
border-radius $friend-link-item-border-radius
box-shadow 1px 1px 3px var(--shadow-color)
cursor pointer
disable-user-select()
position relative /* 新增:设置相对定位 */
overflow visible

.friends-link-item:hover .siteshot {
display block
transform scale(1.3)
}


<!-- at last -->
/* 新增:友链站点截图样式 */
.siteshot {
display none /* 默认不显示 */
bottom 0
right 0
width 100%
height 100%
border 1px solid var(--border-color)
border-radius $friend-link-item-border-radius
background-size cover
background-position center
z-index 999
}

/* 新增:鼠标悬停时显示siteshot */
&:hover .siteshot {
display block
transform scale(2.0)
}