Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make page number substitution in tags for pagination #264

Closed
prio65 opened this issue Aug 15, 2021 · 2 comments
Closed

Make page number substitution in tags for pagination #264

prio65 opened this issue Aug 15, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@prio65
Copy link
Contributor

prio65 commented Aug 15, 2021

у нас индексируемая пагинация и нужно уникализировать теги чтобы такие страницы не дублировали первые страницы

сделать это можно следующим образом

если в адресе страницы есть параметр ?page=, то в теги title и description подставлять "Cтраница [номер страницы] - "

получается следующие шаблоны:
title: Cтраница [номер страницы] - [title первой страницы]
description: Cтраница [номер страницы] - [description первой страницы]

Важно:
подстановка должна быть именно в начало тега

теги первой страницы должны оставаться без изменений (без подстановки номера)

примеры страниц где может быть пагинация
главная - https://cv.hexlet.io/?page=2
вакансии - https://cv.hexlet.io/vacancies?page=2
теги в вакансиях - https://cv.hexlet.io/vacancy_filters/technology-rest?page=2

@acidmaksim acidmaksim changed the title сделать подстановку номера страницы в теги для пагинации Make page number substitution in tags for pagination Sep 13, 2022
@acidmaksim acidmaksim added enhancement New feature or request good first issue Good for newcomers labels Sep 13, 2022
@usernaimandrey
Copy link
Contributor

#399

@usernaimandrey
Copy link
Contributor

Пул реквест принят, если больше пожеланий нет ишю можно закрывать)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Done
Development

No branches or pull requests

3 participants