main: Fixed canonical tag
This commit is contained in:
parent
60b3e5e45c
commit
bb70f69a34
6
404.html
6
404.html
@ -6,8 +6,8 @@
|
||||
<!--This Website was made by Nathan Woodburn https://nathan.woodburn.au -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
||||
<title>Woodburn</title>
|
||||
<link rel="canonical" href="https://woodburn.au/404.html">
|
||||
<meta property="og:url" content="https://woodburn.au/404.html">
|
||||
<link rel="canonical" href="https://woodburn.au/404">
|
||||
<meta property="og:url" content="https://woodburn.au/404">
|
||||
<meta name="description" content="Woodburn Home Page">
|
||||
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="assets/img/180.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="assets/img/16.png">
|
||||
@ -52,4 +52,4 @@ setTimeout(callback(), 4000);
|
||||
<script src="assets/js/404.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
1
cleanup.bat
Normal file
1
cleanup.bat
Normal file
@ -0,0 +1 @@
|
||||
powershell -executionpolicy bypass -File cleanup.ps1
|
25
cleanup.ps1
Normal file
25
cleanup.ps1
Normal file
@ -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)"
|
||||
}
|
@ -66,4 +66,4 @@
|
||||
<script src="assets/js/agency.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user