Pluralization of List Titles

Hugo pluralizes list titles by default, but the behavior can be unexpected. For example:

hugo new site test-site
cd test-site
mkdir layouts/_default
echo '{{ range .Pages}}<a href="{{ .RelPermalink }}">{{ .Title }}</a><br>{{ end }}' > layouts/_default/list.html
echo '{{ .Title }}' > layouts/_default/single.html
hugo new post/my-first-post.md
hugo new posts/my-second-post.md
hugo new treaty/tordesillas.md
hugo new treaties/versailles.md
hugo server -D

The home page will look like this:

Posts
Treaties
Treaties

But I would expect to see:

Posts
Treaties

Now update the config.toml file:

echo 'pluralizelisttitles = "false"' >> config.toml

Now the home page will look like this:

Post
Treaties
Treaty

But I would expect to see:

Post
Posts
Treaties
Treaty

Here’s a git repository for testing:

git clone git@github.com:jmooring/hugo-pluralization-of-list-titles.git