Skip to content

Commit

Permalink
Hide blog nav link when there are no other pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoregen committed Oct 25, 2024
1 parent 4c72747 commit bbd403f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ const Header = () => {
<Link to="/" className="fly-title">{CONFIG.title}</Link>
<nav>
<ul class="fly-nav">
<li>
<Link to="/" activeClassName="fly-nav-active">blog</Link>
</li>
{ data.allMarkdownRemark.nodes.length > 0 &&
<li>
<Link to="/" activeClassName="fly-nav-active">blog</Link>
</li>
}
{
data.allMarkdownRemark.nodes.map(node => (
<li>
Expand Down

0 comments on commit bbd403f

Please sign in to comment.