Custom titile for page 2 and more

Hello. I want to add to title the number of the page. For example, for page 1 title should be “Blog”. For page 2 and more - “Blog - Page 2”. How can I do it?

You’ll need to set a condition based on .PageNumber in your paginator variable.

Example:

{{ if (eq 1 $paginator.PageNumber) }}
 ..

Source

2 Likes

Thanks, this save me some time.