Skip to content

Commit

Permalink
Refactor code for generating HTML navigation top with dynamic file ex…
Browse files Browse the repository at this point in the history
…tensions.

- Fix logo and home links to correctly include file extension.
- Update file names to use GlobalSchema information for consistency.
  • Loading branch information
PrzemyslawKlys committed Oct 15, 2023
1 parent 7f8a7f7 commit b52fa59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Public/New-HTMLNavTop.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
$Script:CurrentConfiguration['Features']['NavigationMenuDropdown']['HeaderAlways']['CssInLine']['@media only screen and (min-width: 480px)']['.has-child ul']['width'] = $MenuItemsWidth

if ($LogoLinkHome) {
$LogoLink = "$($Script:GlobalSchema.StorageInformation.FileName).html"
$LogoLink = "$($Script:GlobalSchema.StorageInformation.FileName)$($Script:GlobalSchema.StorageInformation.Extension)"
}
if ($HomeLinkHome) {
$HomeHref = "$($Script:GlobalSchema.StorageInformation.FileName).html"
$HomeHref = "$($Script:GlobalSchema.StorageInformation.FileName)$($Script:GlobalSchema.StorageInformation.Extension)"
}
}

Expand Down

0 comments on commit b52fa59

Please sign in to comment.