diff --git a/404.html b/404.html index 2edde9d..2885d71 100644 --- a/404.html +++ b/404.html @@ -6,8 +6,8 @@ Woodburn - - + + @@ -52,4 +52,4 @@ setTimeout(callback(), 4000); - \ No newline at end of file + diff --git a/cleanup.bat b/cleanup.bat new file mode 100644 index 0000000..d425a02 --- /dev/null +++ b/cleanup.bat @@ -0,0 +1 @@ +powershell -executionpolicy bypass -File cleanup.ps1 \ No newline at end of file diff --git a/cleanup.ps1 b/cleanup.ps1 new file mode 100644 index 0000000..2b6f068 --- /dev/null +++ b/cleanup.ps1 @@ -0,0 +1,25 @@ +# Get arg 1 + +$directory = $args[0] +if ($args.Length -eq 0) { + Write-Host "No directory specified using current directory" + $directory = "." +} +Write-Host "Directory: $directory" + +# Go through each .html file in the directory +Get-ChildItem -Path $directory -Filter "*.html" | ForEach-Object { + # Get the file name without extension + $filename = $_.BaseName + + # Read the file content + $content = Get-Content $_.FullName -Raw + + # Replace occurrences of "filename.html" with "filename" (outside HTML comments) + $modifiedContent = $content -replace "$filename\.html", $filename + + # Save the modified content back to the file + $modifiedContent | Set-Content $_.FullName + + Write-Host "Modified: $($_.Name)" +} \ No newline at end of file diff --git a/index.html b/index.html index 6f75ecb..ede0060 100644 --- a/index.html +++ b/index.html @@ -66,4 +66,4 @@ - \ No newline at end of file +