mirror of
https://github.com/andwati/pwnforfunandprofit.xyz.git
synced 2026-11-29 04:08:47 +00:00
feat: Update navigation bar by removing the home link, adding a search toggle, and restyling the theme toggle with new icons and layout.
This commit is contained in:
+11
-6
@@ -46,17 +46,22 @@
|
||||
<a href="{{ get_url(path="") }}" class="brand-link">
|
||||
<span class="brand-text">{{ config.title | default(value="pwna4profit") }}</span>
|
||||
</a>
|
||||
<div class="nav-links">
|
||||
<a href="{{ get_url(path="") }}" class="nav-item">Home</a>
|
||||
<div class="nav-links" style="display: flex; align-items: center; gap: 1.25rem;">
|
||||
<a href="{{ get_url(path="/about/") }}" class="nav-item">About</a>
|
||||
<a href="{{ get_url(path="/posts") }}" class="nav-item">Posts</a>
|
||||
<a href="{{ get_url(path="/tags/") }}" class="nav-item">Tags</a>
|
||||
<a href="{{ get_url(path="@/archive/_index.md") }}" class="nav-item">Archive</a>
|
||||
<button id="theme-toggle" class="theme-toggle hover-scale" aria-label="Toggle Dark Mode">
|
||||
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></svg>
|
||||
<svg class="moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
|
||||
|
||||
<span class="nav-separator" style="color: var(--text-muted); opacity: 0.5; margin: 0 -0.25rem;">|</span>
|
||||
|
||||
<button class="search-toggle hover-scale" aria-label="Search" style="background: none; border: none; color: inherit; cursor: pointer; display: flex; align-items: center; padding: 0;">
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
|
||||
</button>
|
||||
|
||||
<button id="theme-toggle" class="theme-toggle hover-scale" aria-label="Toggle Dark Mode" style="padding: 0; display: flex; align-items: center;">
|
||||
<svg class="sun-icon" viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a10 10 0 0 0 0 20z" fill="currentColor"></path></svg>
|
||||
<svg class="moon-icon" viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a10 10 0 0 0 0 20z" fill="currentColor"></path></svg>
|
||||
</button>
|
||||
<!-- Search could go here -->
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user