mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-05-16 15:38:51 +02:00
nav: promote /cv to top-level, remove /now from header
/now is already in the /slashes submenu dropdown, so having it top-level was redundant. /cv gets promoted to main navbar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -114,9 +114,7 @@
|
|||||||
<nav class="site-nav" id="site-nav">
|
<nav class="site-nav" id="site-nav">
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
<a href="/about/">About</a>
|
<a href="/about/">About</a>
|
||||||
{% if collections.pages | selectattr("url", "equalto", "/now/") | list | length %}
|
<a href="/cv/">CV</a>
|
||||||
<a href="/now/">Now</a>
|
|
||||||
{% endif %}
|
|
||||||
{# Slash pages dropdown - all root pages in one menu #}
|
{# Slash pages dropdown - all root pages in one menu #}
|
||||||
<div class="nav-dropdown" x-data="{ open: false }" @mouseenter="open = true" @mouseleave="open = false">
|
<div class="nav-dropdown" x-data="{ open: false }" @mouseenter="open = true" @mouseleave="open = false">
|
||||||
<a href="/slashes/" class="nav-dropdown-trigger">
|
<a href="/slashes/" class="nav-dropdown-trigger">
|
||||||
@@ -201,9 +199,7 @@
|
|||||||
<nav class="mobile-nav hidden" id="mobile-nav" x-data="{ blogOpen: false, slashOpen: false }">
|
<nav class="mobile-nav hidden" id="mobile-nav" x-data="{ blogOpen: false, slashOpen: false }">
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
<a href="/about/">About</a>
|
<a href="/about/">About</a>
|
||||||
{% if collections.pages | selectattr("url", "equalto", "/now/") | list | length %}
|
<a href="/cv/">CV</a>
|
||||||
<a href="/now/">Now</a>
|
|
||||||
{% endif %}
|
|
||||||
{# Slash pages section - all root pages in one menu #}
|
{# Slash pages section - all root pages in one menu #}
|
||||||
<div class="mobile-nav-section">
|
<div class="mobile-nav-section">
|
||||||
<button type="button" class="mobile-nav-toggle" @click="slashOpen = !slashOpen">
|
<button type="button" class="mobile-nav-toggle" @click="slashOpen = !slashOpen">
|
||||||
|
|||||||
Reference in New Issue
Block a user