# Pagination
## I. Layout
> Required: Alway show 4 button arrows and 3 item (both desktop and mobile)
>

## II. Do
### 1. Setup
PHP: get
- Total pages -> set `data-total-page=$total_page`
### 2. Idea
All cases base on maximun pages:
- Total pages <=3:
- hide double arrow item
- return
- Total pages > 3:
- Delete all dots
- Get attrbute `href` to any item number has link to get value = `https://mijnsitebeheren.com/goodnfood/blog/page/...`
- Check current page
- if `current === 1` or `current === 2` => disable double arrow previous


- if `current === total pages` or `current === total pages - 1` => disable double arrow next


- if `current === 1` keep 3 first items, remove all remaining items; reset href + text to 3rd item

- if `current === 2` => keep 3 first items, remove all remaining items

- if `current === total page - 1` => keep 3 last items, remove all remaining items

- if `current === total page` => keep 3 last items, remove all remaining items; reset href + text to (total page - 2) item

- if `current === [3, total page-2]` =>keep items: current item, previous item; remove all remaining items;
