Noindex all paginated pages

I have managed to do that to the categories and tags pages via the following. This code goes into where the rest of the code is on the header.

{{ if eq .Data.Singular .Kind "tags" }}<meta name="robots" content="noindex" />{{ end }}
{{ if eq .Data.Singular .Kind "category" }}<meta name="robots" content="noindex" />{{ end }}

The problem with Pagination pages is that it needs to be done in a specific way and I am still having problem with my theme.

You can see an example from the following URL. Do let me know if you have managed to fix it.