Skip to content

Commit

Permalink
The Posts Page resolves to display the Home or Index template only. A…
Browse files Browse the repository at this point in the history
…dding a check to skip the Front Page
  • Loading branch information
ramonjd committed Jul 6, 2023
1 parent 4e499df commit 9a45108
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export default function SidebarNavigationScreenPages() {

const getPageProps = ( id ) => {
let itemIcon = page;
const isPostsPage = postsPage && postsPage === id;
const isPostsPage =
postsPage && postsPage === id && homeTemplate.slug !== 'front-page';

switch ( id ) {
case frontPage:
Expand Down

0 comments on commit 9a45108

Please sign in to comment.