Gallery
<% images.forEach(image=> { %>
Tải ảnh
<% }) %>
<% const start=Math.max(1, currentPage - 2); %> <% const end=Math.min(totalPages, currentPage + 2); %>
<% if (currentPage> 1) { %>
«
<% } %> <% for(let i=start; i <=end; i++) { %>
<%= i %>
<% } %> <% if (currentPage < totalPages) { %>
»
<% } %>