# 41 Insert Nav

41 Insert Nav on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example42-NavigationInsert`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

$Files = Get-ChildItem -LiteralPath $PSScriptRoot\pages

# not a working example

$Navitation = New-HTMLNavTop -Logo 'https://evotec.xyz/wp-content/uploads/2021/04/Logo-evotec-bb.png' -LogoLinkHome {
    New-NavTopMenu -Name 'Domains' -IconRegular address-book {
        New-NavLink -IconMaterial airplane -Name 'This is internal link 1' -InternalPageID 'Page 1'
        New-NavLink -IconSolid address-book -Href 'https://evotec.xyz' -Name 'This is link to evotec' -IconColor Pink -NameColor Red
        New-NavLink -Name 'This is link 3' -IconBrands apple-pay {
            New-NavLink -IconMaterial airplane -Href 'https://evotec.xyz' -Name 'This is link 5'
            New-NavLink -IconSolid address-book -Name 'This is link 6' {
                New-NavLink -Name 'This is link 3' -IconBrands confluence {
                    New-NavLink -IconMaterial airplane -Href 'https://evotec.xyz' -Name 'This is link 5'
                    New-NavLink -IconSolid address-book -Href 'https://evotec.xyz' -Name 'This is link 6'
                }
            }
        }
    }
    New-NavTopMenu -Name 'Domain Controllers' -IconSolid ambulance {
        New-NavLink -IconMaterial airplane -Name 'This is link 1' -InternalPageID 'Page 2'
        New-NavLink -IconSolid address-book -Href 'https://evotec.xyz' -Name 'This is link 2'
        New-NavLink -IconBrands codiepie -Href 'https://evotec.xyz' -Name 'This is link 3'
    }
    New-NavTopMenu -Name 'Office 365' {
        New-NavLink -IconMaterial airplane -Href 'https://evotec.xyz' -Name 'This is link 1'
        New-NavLink -IconSolid address-book -Href 'https://evotec.xyz' -Name 'This is link 2'
        New-NavLink -IconBrands codiepie -Href 'https://evotec.xyz' -Name 'This is link 4'
    }
} -Convert #-MenuColor Black -MenuColorBackground Pink -HomeColorBackground Black -HomeColor Red

return

foreach ($File in $Files) {
    $HTMLContent = Get-Content -Raw -LiteralPath $File.FullName
    $HTMLContent.Replace('<body>')
}
```

<!-- PowerForge markdown artifact sha256:4E5C86B8861D0E8E143EDD118DF3E12C20785160E4EAB601272C36CE8AEE2A7F -->
