feat: added all posts and all recipes links to headers

This commit is contained in:
Leyla Becker 2026-02-20 12:01:30 -06:00
parent dc8eb631b6
commit bf11f1dd39
3 changed files with 8 additions and 0 deletions

View file

@ -93,6 +93,7 @@
padding: var(--space-section);
}
header { margin-bottom: var(--space-section); padding-bottom: var(--space-element); border-bottom: 1px solid var(--color-border-default); }
header nav { display: flex; justify-content: space-between; align-items: center; }
header nav a { color: var(--color-text-heading); text-decoration: none; font-weight: var(--font-weight-bold); font-size: var(--font-size-nav); }
main { min-height: calc(100vh - 200px); }
h1, h2, h3 { color: var(--color-text-heading); margin: 1.5rem 0 1rem; }
@ -122,6 +123,11 @@
<header>
<nav>
<a href="/">Home</a>
{% if pageType == 'post' %}
<a href="/posts/">All Posts</a>
{% elif pageType == 'recipe' %}
<a href="/recipes/">All Recipes</a>
{% endif %}
</nav>
</header>

View file

@ -1,5 +1,6 @@
---
layout: base.njk
pageType: post
---
<article class="blog-post">

View file

@ -1,5 +1,6 @@
---
layout: base.njk
pageType: recipe
---
<article class="recipe">
{% if isDraft %}