From ab938d29df39216bc039c9bb80c6365d36da50f0 Mon Sep 17 00:00:00 2001 From: Atiq Rahman Date: Sun, 24 Sep 2023 22:49:04 -0700 Subject: [PATCH] Disable IsPage till perf regression is fixed - reverses commit 8c248f0 partially ref. #24, rel. #25 --- input/_layout.cshtml | 6 +----- input/_navbar.cshtml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/input/_layout.cshtml b/input/_layout.cshtml index 9e86839..563c8f3 100644 --- a/input/_layout.cshtml +++ b/input/_layout.cshtml @@ -2,7 +2,7 @@ @{ var isPost = Document.GetBool("IsPost") && !Document.GetBool("IsPostArchive"); - var isPage = Document.GetBool("IsPage"); + // var isPage = Document.GetBool("IsPage"); } @@ -84,10 +84,6 @@ { @Html.Partial("_post-after-content") } - else if (isPage) - { - @Html.Partial("_page-after-content") - } @Html.Partial("_common-after-content") diff --git a/input/_navbar.cshtml b/input/_navbar.cshtml index 01790ac..efbef33 100644 --- a/input/_navbar.cshtml +++ b/input/_navbar.cshtml @@ -1,4 +1,4 @@ -@foreach(IDocument doc in Context.OutputPages.Where(x => x.GetBool("ShowInNavbar", x.GetBool("IsPage"))).OrderBy(x => x.GetInt(Keys.Order))) +@foreach(IDocument doc in Context.OutputPages.Where(x => x.GetBool("ShowInNavbar", false)).OrderBy(x => x.GetInt(Keys.Order))) { // Pages get added to the navigation bar by default, // other pages (including posts) only if they have ShowInNavbar set to true