2024-09-16 07:53:26 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title><%= title %></title>
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="/css/styles.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- Navbar -->
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="navbar-brand" href="/">raven-scott.fyi</a>
|
|
|
|
<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 ms-auto">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="/">Home</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/about">About Me</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/contact">Contact</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<header class="py-5">
|
|
|
|
<div class="container text-center">
|
|
|
|
<h1>Welcome to my long form post blog</h1>
|
|
|
|
<p class="lead">Latest articles and insights from Raven Scott</p>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="py-5">
|
|
|
|
<div class="container">
|
|
|
|
<h2>Recent Posts</h2>
|
2024-09-16 13:42:27 -04:00
|
|
|
<ul class="list-group list-group-flush">
|
2024-09-16 07:53:26 -04:00
|
|
|
<% blogPosts.forEach(post => { %>
|
2024-09-16 13:42:27 -04:00
|
|
|
<li class="list-group-item d-flex justify-content-between align-items-center py-4">
|
|
|
|
<div>
|
|
|
|
<h5 class="mb-1"><a href="/blog/<%= post.slug %>"> <%= post.title %> </a></h5>
|
|
|
|
<p class="mb-1 text-muted">Posted on <%= post.date %></p>
|
2024-09-16 07:53:26 -04:00
|
|
|
</div>
|
2024-09-16 13:42:27 -04:00
|
|
|
<a href="/blog/<%= post.slug %>" class="btn btn-outline-primary">Read Article</a>
|
|
|
|
</li>
|
2024-09-16 07:53:26 -04:00
|
|
|
<% }) %>
|
2024-09-16 13:42:27 -04:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Pagination controls -->
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
|
<ul class="pagination justify-content-center mt-4">
|
|
|
|
<% if (currentPage > 1) { %>
|
|
|
|
<li class="page-item">
|
|
|
|
<a class="page-link" href="?page=<%= currentPage - 1 %>">Previous</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% for (let i = 1; i <= totalPages; i++) { %>
|
|
|
|
<li class="page-item <%= currentPage === i ? 'active' : '' %>">
|
|
|
|
<a class="page-link" href="?page=<%= i %>"><%= i %></a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if (currentPage < totalPages) { %>
|
|
|
|
<li class="page-item">
|
|
|
|
<a class="page-link" href="?page=<%= currentPage + 1 %>">Next</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2024-09-16 07:53:26 -04:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="bg-dark text-white text-center py-4">
|
|
|
|
<div class="container">
|
|
|
|
<h4 class="footer-logo mb-3">Never Stop Learning</h4>
|
|
|
|
<p class="footer-links mb-3">
|
|
|
|
<a href="/" class="text-white text-decoration-none me-3">Home</a>
|
|
|
|
<a href="/about" class="text-white text-decoration-none me-3">About</a>
|
|
|
|
<a href="/contact" class="text-white text-decoration-none">Contact</a>
|
|
|
|
</p>
|
|
|
|
<p class="mb-0">© 2024 Raven Scott. All rights reserved.</p>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|