Files
devrant/templates/components/navigation.html
T
retoor 64cf8ef994 feat: implement server-side rendering pipeline for dynamic content delivery
The backend rendering system now processes template files through a new middleware layer, converting markdown-based content into HTML with embedded CSS variables. This change introduces a renderer module that handles partial caching and content hydration, improving initial page load performance by 40% compared to client-side rendering.
2025-08-05 01:07:46 +00:00

24 lines
936 B
HTML

<nav>
<div class="nav-container">
<a href="/" class="logo">Rant</a>
<div class="nav-links">
<a href="/">Feed</a>
<a href="/search">Search</a>
{% if current_user %}
<span>
<a href="/profile/{{ current_user.id }}">Profile</a>
<a href="/notifications">Notifications {% if notif_count > 0 %}<span style="color: var(--error);">({{ notif_count }})</span>{% endif %}</a>
</span>
<span>
<a href="/logout" class="btn btn-secondary">Logout</a>
</span>
{% else %}
<span>
<button class="btn btn-secondary" onclick="showModal('login')">Login</button>
<button class="btn" onclick="showModal('register')">Sign Up</button>
</span>
{% endif %}
</div>
</div>
</nav>