zregvart commented on a change in pull request #295: Custom Pagination within Blog Section URL: https://github.com/apache/camel-website/pull/295#discussion_r401449847
########## File path: layouts/blog/list.html ########## @@ -15,9 +15,46 @@ <h3>Categories</h3> {{ range $pages }} {{ .Render "summary" }} {{ end }} - {{ template "_internal/pagination.html" . }} + + {{ $page := .Paginator }} + {{ if gt $page.TotalPages 1 }} + {{ $.Scratch.Set "dot_rendered" false }} + <nav aria-label="page navigation"> + <ul class="pagination"> + <!-- Don't show on 1st and 2nd page --> + {{ if and (ne $page.PageNumber 1) }} Review comment: Perhaps ```suggestion {{ if not .$page.First }} ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services