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);
|
||||
}
|
||||
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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue