mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
Implemented a new 'Posts' page which has been added to the main navigation. This includes: - Adding the 'posts.html' template with basic HTML and related CSS/JS - Updating the 'componentNavbar.html' template to include a link to the new Posts page - Writing the 'GetPostsPage' function in 'api/page.go' to handle requests for the Posts page - Modifying the 'home.html' template to provide a link towards the Posts Page - Adding an associated route in 'api/page.go'.
29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
|
<div class="container">
|
|
<div class="d-flex gap-2 justify-content-center align-items-center">
|
|
<img src="/static/gohcms-favicon-128.png" alt="Logo" style="width: 2.5rem"/>
|
|
<a class="navbar-brand h1 my-auto" href="https://github.com/Floriansylvain/GohCMS" target="_blank">
|
|
GohCMS
|
|
</a>
|
|
</div>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav me-auto">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/home">Accueil</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/posts">Posts</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link disconnect-link" href="/logout">Se déconnecter</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav> |