Help when I want to use different number of paginations in different category lists

I tried use config.toml its ok in homepage. but how to use for category list
ex. /dir1/index.html I want paginate is 6
/dir2/index.html I want paginate is 8

and I tried use config directory
ex. config/_default/config.toml - this is default config file
config/dir1/config.toml this file I write ”paginate = 2“ for test

list.html template is use
{{ $paginator := .Paginate (where .Site.RegularPages “Kind” “page”) }}
{{ range $paginator.Pages }

{{ .Title }}
{{ end }}

but It’s not work…
output is default paginate number = 10…
please help what should I do?

Thanks everyone and sorry to use resource. now this problem is solved.
It can add number like that in the list template:
{{ range .Paginator.Pages }} to {{ range (.Paginator 2).Pages }}
or
{{ $paginator := .Paginate where .Site.RegularPages “Kind” “page” }} to {{ $paginator := (.Paginate (where .Site.RegularPages “Kind” “page”) 2) }}
that the list page will show only 2 articles
dont need change config.toml

If there is a better solution, please reply thanks a lot.