Extra Generated Output

Hi!

Sorry if I can’t describe it well.

Does anyone having this problem. Let say I have the following content structure:

Content
–|blog
----|post01.md
----|post02.md

For some reason I got the following output

–blog
----|index.html
----|post01
--------|index.html
----|post02
--------|index.html
blogpage1
----:index.html

Index.html in blogpage1 contain html redirect script to blog section.

All the section got this sectiontitlepage1.
All the tags got this tagstagtitlepage1

Basically Hugo is generating unnecessary files. Is this Hugo default behavior. Or I mess up my config or something?

Thank you.

Looks related to this mystery issue:

In my case.

I am not using theme. I am styling mine directly in layouts.
There are only default config.toml in my install.

Update:

I have read link mention by @bep, it seem to be cause by paginator. Below is the code I used for my paginator.

{{ if ne .Paginator.TotalPages 1 }}
{{ if .Paginator.HasPrev }}

{{ else }}

{{ end }}
Page {{.Paginator.PageNumber}} of {{.Paginator.TotalPages}}
{{ if .Paginator.HasNext }}

{{ else }}

{{ end }}
{{ end }}

The problem only occur in my windows 10 64 bit machine.

When I switch to Linux everything work just fine though.