nt(page_posts[i].name));
            }

            let list_temp = `<li class="page-item" id="page-@@page@@">
                    <a class="page-link @@active@@"
                       href="javascript:change_page(@@page@@)">@@page@@</a>
                </li>`;
            let max_page;
            if (window.innerWidth > 1200) {
                max_page = 7;
            } else if (window.innerWidth > 768) {
                max_page = 5;
            } else {
                max_page = 3;
            }
    