added 增加配置

This commit is contained in:
Vaica committed 2026-02-01 18:22:19 +08:00
1 parent 6f5fe6de35
commit 42b2a1f868
4 files changed
+15 -4

No files matched your search

+7
View File
@@ -96,6 +96,13 @@ hasCJKLanguage = true
{ title = "Rss订阅", url = "/rss.xml", icon = "ri-rss-fill" } { title = "Rss订阅", url = "/rss.xml", icon = "ri-rss-fill" }
] ]
# ----------------------------------------------------------------------------
# 移动端配置 (Mobile Configuration)
# ----------------------------------------------------------------------------
[params.mobile]
show_social = false # 移动端是否显示社交图标
show_hitokoto = false # 移动端是否显示一言 (打字机效果)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# 关于页面配置 (About Page Configuration) # 关于页面配置 (About Page Configuration)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
+4
View File
@@ -1179,6 +1179,10 @@ ul {
/* Mobile Adaptation */ /* Mobile Adaptation */
@media (max-width: 767px) { @media (max-width: 767px) {
.mobile-hide {
display: none !important;
}
.recent-posts .posts .post:first-of-type { .recent-posts .posts .post:first-of-type {
margin-top: -10px; margin-top: -10px;
} }
+2 -2
View File
@@ -413,10 +413,10 @@
const description = post.description ? post.description.replace(/"/g, '"') : ''; const description = post.description ? post.description.replace(/"/g, '"') : '';
// Calculate delay for staggered animation // Calculate delay for staggered animation
const delay = index * 50; const delay = index * 100;
html += ` html += `
<a href="${post.link}" target="_blank" class="fc-item" data-desc="${description}" data-title="${post.title}" uk-scrollspy="cls: uk-animation-slide-bottom-small uk-animation-fast; delay: ${delay}"> <a href="${post.link}" target="_blank" class="fc-item" data-desc="${description}" data-title="${post.title}" uk-scrollspy="cls: uk-animation-slide-bottom-small; delay: ${delay}">
<div class="fc-title" title="${post.title}">${post.title}</div> <div class="fc-title" title="${post.title}">${post.title}</div>
<img src="${bgImageSrc}" class="fc-bg-image" onerror="this.style.opacity=0"> <img src="${bgImageSrc}" class="fc-bg-image" onerror="this.style.opacity=0">
<div class="fc-bottom"> <div class="fc-bottom">
+2 -2
View File
@@ -11,14 +11,14 @@
</div> </div>
</div> </div>
<div class="header-info"> <div class="header-info">
<div class="header-social"> <div class="header-social {{ if not .Site.Params.mobile.show_social }}mobile-hide{{ end }}">
{{ with .Site.Params.social }} {{ with .Site.Params.social }}
{{ range . }} {{ range . }}
<a href="{{ .url }}" title="{{ .title }}" target="_blank"><i class="{{ .icon }}"></i></a> <a href="{{ .url }}" title="{{ .title }}" target="_blank"><i class="{{ .icon }}"></i></a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
<div class="header-bio">{{ .Site.Params.author.description }}</div> <div class="header-bio {{ if not .Site.Params.mobile.show_hitokoto }}mobile-hide{{ end }}">{{ .Site.Params.author.description }}</div>
</div> </div>
</div> </div>
<nav class="header-menu"> <nav class="header-menu">