diff --git a/deploy.ps1 b/deploy.ps1 new file mode 100644 index 00000000..f60cf88a --- /dev/null +++ b/deploy.ps1 @@ -0,0 +1,28 @@ +# 设置控制台编码为 UTF-8,防止中文乱码 +[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 + +Write-Host "🔍 正在进行友链健康检查..." -ForegroundColor Cyan + +# 运行 Node.js 检查脚本 +node scripts/check_links.js + +# 检查脚本退出代码 +if ($LASTEXITCODE -ne 0) { + Write-Host "⚠️ 友链检查发现问题或执行失败。" -ForegroundColor Yellow + $response = Read-Host "是否继续执行 Hugo 打包?(Y/N)" + if ($response -ne 'Y' -and $response -ne 'y') { + Write-Host "❌ 已取消打包。" -ForegroundColor Red + exit + } +} else { + Write-Host "✅ 友链检查通过。" -ForegroundColor Green +} + +Write-Host "🚀 开始执行 Hugo 打包..." -ForegroundColor Cyan +hugo + +if ($LASTEXITCODE -eq 0) { + Write-Host "🎉 打包成功!" -ForegroundColor Green +} else { + Write-Host "❌ 打包失败,请检查错误日志。" -ForegroundColor Red +} diff --git a/themes/Ying/static/css/main.css b/themes/Ying/static/css/main.css index f7abc737..31b664aa 100644 --- a/themes/Ying/static/css/main.css +++ b/themes/Ying/static/css/main.css @@ -2156,10 +2156,12 @@ input[type=submit] { bottom: auto!important } +/* Artalk 昵称颜色增强 - 白昼模式 */ .artalk .atk-item.atk-nick, -.atk-item.atk-nick { - color: #000!important; - font-weight: 700 +.atk-item.atk-nick, +.atk-header .atk-nick { + color: #000 !important; + font-weight: 700 !important; } .artalk .atk-item.atk-nick a, @@ -2218,6 +2220,16 @@ input[type=submit] { --at-color-border: #DDD !important } +.artalk, +.atk-layer-wrap { + color: var(--text-content-color) !important; +} + +[data-theme="dark"] .artalk, +[data-theme="dark"] .atk-layer-wrap { + color: var(--text-content-dark-color) !important; +} + .atk-content img { max-height: 1.1rem!important; vertical-align: middle; @@ -2234,6 +2246,30 @@ input[type=submit] { color: var(--text-content-dark-color)!important; } +[data-theme="dark"] .atk-content, +[data-theme="dark"] .atk-header { + color: var(--text-content-dark-color)!important; +} + +[data-theme="dark"] .artalk .atk-item.atk-nick, +[data-theme="dark"] .atk-item.atk-nick, +[data-theme="dark"] .atk-header .atk-nick { + color: var(--text-content-dark-color)!important; +} + +.atk-loading { + padding: 10px 14px; + border-radius: 8px; + background: rgba(255, 255, 255, 0.86); + box-shadow: var(--card-shadow-light); + backdrop-filter: blur(18px); + -webkit-backdrop-filter: blur(18px); +} + +.atk-loading-spinner svg circle { + stroke: var(--text-highlight-color); +} + .artalk .atk-main-editor input.atk-nick, .artalk .atk-main-editor input.atk-email, .artalk .atk-main-editor input.atk-link { @@ -2247,8 +2283,11 @@ input[type=submit] { } [data-theme="dark"] .atk-loading { - background-color: #111827!important; + background: rgba(15, 23, 42, 0.95)!important; border-radius: 8px; + box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65); + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); } [data-theme="dark"] .atk-loading-spinner svg circle { @@ -2363,10 +2402,6 @@ img[atk-emoticon] { background: 0 0!important } - .atk-content,.atk-header { - color: var(--text-content-dark-color)!important - } - .atk-ua { color: #666!important; background: var(--background-dark-color)!important @@ -2377,7 +2412,6 @@ img[atk-emoticon] { --at-color-bg: #1A1718 !important; --at-color-border: #332D2F !important; --at-color-meta: #666 !important; - --at-color-font: #BBB !important; --at-color-bg-grey: var(--background-dark-color) !important; --at-color-bg-grey: #332D2E!important } @@ -2390,11 +2424,6 @@ img[atk-emoticon] { color: #666!important } - .artalk .atk-item.atk-nick, - .atk-item.atk-nick { - color: var(--text-content-dark-color)!important - } - .atk-pinned-badge { color: var(--text-content-dark-color)!important; background: #666!important