Next <i class="bi bi-chevron-right"></i>
            </a>
        </div>
        
        <script>
        let currentPage = {{if .pageNumber}}{{.pageNumber}}{{else}}1{{end}};
        const totalPages = {{if .totalPages}}{{.totalPages}}{{else}}1{{end}};
        
        function nextPage() {
            if (currentPage < totalPages) {
                currentPage++;
                const url = new URL(window.location);
                url.searchParams.set('page', currentPage);
                window.location