Improve documentation for this enhancement

This commit is contained in:
Ashwin Maroli 2019-01-06 12:05:30 +05:30
parent 9b1001eb62
commit 5aab527805
1 changed files with 9 additions and 4 deletions

View File

@ -139,11 +139,16 @@ Which will generate following canonical_url:
<link rel="canonical" href="http://yoursite.com/title-of-your-post" />
```
### Changing title message for paginated page
### Customizing title modifier for paginated pages
You can override the default title modifier for paginated pages from `Page %{current} of %{total} for ` to a string of your
choice by setting a `paginator_message` key in your `_config.yml`.
You can override default title message for paginated page from `Page %<current>s of %<total>s for ` to custom message by adding parameter to `_config.yml`.
For example:
```yml
paginator_message: "%<current>s / %<total>s |"
paginator_message: "%<current>s / %<total>s | "
```
For key **paginator_message** please use string template with two variables `current` and `total`.
While the value can be any string text, we recommend using a Ruby string-template containing the variables `current` and `total`
similar to the example above, to incorporate the current page-number and total number of paginated pages in the title.