fixed 关于页面bug
This commit is contained in:
1 parent
4983253311
commit
e1670f37b5
154 files changed
+767
-738
No files matched your search
@@ -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)"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user