remove the data-enhance-nav commented logic in menu components

This commit is contained in:
sbwalker 2024-02-27 17:05:21 -05:00
parent 3d538d0566
commit 7286c2f603
2 changed files with 0 additions and 16 deletions

View File

@ -13,10 +13,6 @@
{ {
_attributes.Add("target", _target); _attributes.Add("target", _target);
} }
@*if (PageState.RenderMode == RenderModes.Static && PageState.Page.ThemeType != (string.IsNullOrEmpty(childPage.ThemeType) ? PageState.Site.DefaultThemeType : childPage.ThemeType))
{
_attributes.Add("data-enhance-nav", "false");
}*@
if (childPage.PageId == PageState.Page.PageId) if (childPage.PageId == PageState.Page.PageId)
{ {
<a class="nav-link active px-3" @attributes="_attributes"> <a class="nav-link active px-3" @attributes="_attributes">
@ -50,10 +46,6 @@ else
{ {
_attributes.Add("target", _target); _attributes.Add("target", _target);
} }
@*if (PageState.RenderMode == RenderModes.Static && PageState.Page.ThemeType != (string.IsNullOrEmpty(childPage.ThemeType) ? PageState.Site.DefaultThemeType : childPage.ThemeType))
{
_attributes.Add("data-enhance-nav", "false");
}*@
if (!Pages.Any(e => e.ParentId == childPage.PageId)) if (!Pages.Any(e => e.ParentId == childPage.PageId))
{ {
if (childPage.PageId == PageState.Page.PageId) if (childPage.PageId == PageState.Page.PageId)

View File

@ -12,10 +12,6 @@
{ {
_attributes.Add("target", _target); _attributes.Add("target", _target);
} }
@*if (PageState.RenderMode == RenderModes.Static && PageState.Page.ThemeType != (string.IsNullOrEmpty(childPage.ThemeType) ? PageState.Site.DefaultThemeType : childPage.ThemeType))
{
_attributes.Add("data-enhance-nav", "false");
}*@
if (childPage.PageId == PageState.Page.PageId) if (childPage.PageId == PageState.Page.PageId)
{ {
<li class="nav-item px-3" style="margin-left: @(childPage.Level * 15)px;"> <li class="nav-item px-3" style="margin-left: @(childPage.Level * 15)px;">
@ -56,10 +52,6 @@ else
{ {
_attributes.Add("target", _target); _attributes.Add("target", _target);
} }
@*if (PageState.RenderMode == RenderModes.Static && PageState.Page.ThemeType != (string.IsNullOrEmpty(childPage.ThemeType) ? PageState.Site.DefaultThemeType : childPage.ThemeType))
{
_attributes.Add("data-enhance-nav", "false");
}*@
if (childPage.PageId == PageState.Page.PageId) if (childPage.PageId == PageState.Page.PageId)
{ {
<li class="nav-item px-3" style="margin-left: @(childPage.Level * 15)px;"> <li class="nav-item px-3" style="margin-left: @(childPage.Level * 15)px;">