fixed 关于页面bug

This commit is contained in:
Vaica committed 2026-01-22 21:26:48 +08:00
1 parent 4983253311
commit e1670f37b5
154 files changed
+767 -738

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
$files = Get-ChildItem -Path "content" -Recurse -Filter "*.md"
foreach ($file in $files) {
$content = Get-Content $file.FullName -Raw -Encoding UTF8
if ($content -match "status:\s*hidden") {
$newContent = $content -replace "status:\s*hidden`r`n", "" -replace "status:\s*hidden`n", "" -replace "status:\s*`"hidden`"`r`n", "" -replace "status:\s*`"hidden`"`n", ""
Set-Content -Path $file.FullName -Value $newContent -Encoding UTF8
Write-Host "Updated $($file.Name)"
}
}