feat: Posts page impl and associated routes

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'.
This commit is contained in:
Florian Sylvain
2023-09-06 02:20:27 +02:00
parent 554fdc1989
commit 5bd4b4769f
5 changed files with 39 additions and 5 deletions
@@ -16,7 +16,9 @@
<div class="container mt-3 text-black-50">
<h1>Accueil</h1>
<p>Bienvenue sur GohCMS !</p>
<button class="btn btn-outline-primary">Posts &raquo;</button>
<a href="/posts">
<button class="btn btn-outline-primary">Posts &raquo;</button>
</a>
</div>
</body>
</html>