Inspect shared component usage and identify website pages needing editorial review.
Sheet: 21 of 25 | Platform: Windows 10/11 | Shell: PowerShell 7.x and Windows PowerShell 5.1 (unless marked otherwise) | Editorial review: November 24, 2026
Examples use the MGU project root and illustrative staging, backup, and download paths. Replace them with existing, approved paths as needed. Unless explicitly marked as a continuation, examples are independent. Read commands before running them; commands that write or modify files can change existing data.
Quick commands
1. Find pages using the shared stylesheet
Get-ChildItem -LiteralPath 'C:\MGU' -Recurse -File -Filter '*.html' |
Select-String -Pattern '/component/lib.css' -SimpleMatch -List | Select-Object Path
2. Find pages missing the shared header placeholder
Get-ChildItem -LiteralPath 'C:\MGU' -Recurse -File -Filter '*.html' |
Where-Object { -not (Select-String -LiteralPath $_.FullName -Pattern 'header-placeholder' -SimpleMatch -Quiet -ErrorAction Stop) } |
Select-Object FullName
3. Find pages using an older component reference
Get-ChildItem -LiteralPath 'C:\MGU' -Recurse -File -Filter '*.html' |
Select-String -Pattern '/component/old.css' -SimpleMatch -List
4. Check common shell markers for a single page
$path = 'C:\MGU\index.html'
$markers = 'header-placeholder','main-content','bottom-nav-placeholder','footer-placeholder'
foreach ($marker in $markers) {
[pscustomobject]@{Marker=$marker; Found=(Select-String -LiteralPath $path -Pattern $marker -SimpleMatch -Quiet -ErrorAction Stop)}
}
5. Inspect recently updated HTML pages
$cutoff = (Get-Date).AddDays(-7)
Get-ChildItem -LiteralPath 'C:\MGU' -Recurse -File -Filter '*.html' |
Where-Object LastWriteTime -ge $cutoff | Select-Object FullName, LastWriteTime
Operational notes
Marker checks are triage, not HTML parsing or browser tests. Preserve global header/footer components. Review the content purpose and legacy-page modernization policy before replacing components; do not bulk-modify unrelated pages.