`. For the pages in a new Blazor project:
```razor
Navigation
Home
Counter
Weather
```
> **Edit the file, don't replace it**
>
> Keep the rest of `AppSidebar.razor`: the header, the footer, and the `@code` block at the bottom, which defines `IsCurrentPath`. Replacing the whole file with this snippet fails the build with "The name 'IsCurrentPath' does not exist in the current context".
Keep an icon inside each button if you want one; the placeholders show inline SVGs. `IsCurrentPath` highlights the link of the current page. Remove the Settings entry if you have no settings page.
## 4. Remove the old layout (optional)
After step 2, the template's `MainLayout` is no longer used. You can delete these from `Components/Layout/`:
- `MainLayout.razor` and `MainLayout.razor.css`
- `NavMenu.razor` and `NavMenu.razor.css`
Keep `ReconnectModal.*` (.NET 10). Before deleting, do these two things, or the build or the error bar will break.
**Pages that name `MainLayout`.** The .NET 10 template's `Components/Pages/NotFound.razor` has `@layout MainLayout`, and Identity's `Components/Account/Shared/ManageLayout.razor` does too. Change them to the dashboard:
```razor
@layout DashboardLayout02
```
**The error bar.** `MainLayout.razor` contains Blazor's error bar (``). Move it into `Components/App.razor`, just before `