Skip to content

Commit

Permalink
Disable IsPage till perf regression is fixed
Browse files Browse the repository at this point in the history
- reverses commit 8c248f0 partially

ref. #24, rel. #25
  • Loading branch information
atiq-cs committed Sep 25, 2023
1 parent 9a1d228 commit ab938d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions input/_layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
@{
var isPost = Document.GetBool("IsPost") && !Document.GetBool("IsPostArchive");
var isPage = Document.GetBool("IsPage");
// var isPage = Document.GetBool("IsPage");
}

<head>
Expand Down Expand Up @@ -84,10 +84,6 @@
{
@Html.Partial("_post-after-content")
}
else if (isPage)
{
@Html.Partial("_page-after-content")
}
@Html.Partial("_common-after-content")
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion input/_navbar.cshtml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ab938d2

Please sign in to comment.