remove the data-enhance-nav commented logic in menu components
This commit is contained in:
parent
3d538d0566
commit
7286c2f603
|
@ -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)
|
||||||
|
|
|
@ -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;">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user