feat: added all posts and all recipes links to headers
This commit is contained in:
parent
dc8eb631b6
commit
bf11f1dd39
3 changed files with 8 additions and 0 deletions
|
|
@ -93,6 +93,7 @@
|
||||||
padding: var(--space-section);
|
padding: var(--space-section);
|
||||||
}
|
}
|
||||||
header { margin-bottom: var(--space-section); padding-bottom: var(--space-element); border-bottom: 1px solid var(--color-border-default); }
|
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); }
|
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); }
|
main { min-height: calc(100vh - 200px); }
|
||||||
h1, h2, h3 { color: var(--color-text-heading); margin: 1.5rem 0 1rem; }
|
h1, h2, h3 { color: var(--color-text-heading); margin: 1.5rem 0 1rem; }
|
||||||
|
|
@ -122,6 +123,11 @@
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
|
{% if pageType == 'post' %}
|
||||||
|
<a href="/posts/">All Posts</a>
|
||||||
|
{% elif pageType == 'recipe' %}
|
||||||
|
<a href="/recipes/">All Recipes</a>
|
||||||
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
|
pageType: post
|
||||||
---
|
---
|
||||||
|
|
||||||
<article class="blog-post">
|
<article class="blog-post">
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: base.njk
|
layout: base.njk
|
||||||
|
pageType: recipe
|
||||||
---
|
---
|
||||||
<article class="recipe">
|
<article class="recipe">
|
||||||
{% if isDraft %}
|
{% if isDraft %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue