[SOLVED] `disableKinds` still prints redundant information

Moving the discussion from Github by request to the forum:

I wrote:

Perhaps the Hugo output can then also be cleaned up. Meaning, when DisableTaxonomies is set to true, then Hugo doesn’t have to print…
0 categories created
0 tags created

…each time the site builds.

@bep wrote:

Agree.

Then I wrote:

@bep , you mentioned above that Hugo doesn’t need to print when kinds are disabled. Has that feature be implemented with disableKinds?

I’m asking because with the following in config.toml

disableKinds = ["section", "taxonomy", "taxonomyTerm"]

[taxonomies]
  category = ""
  tags = ""

I still get the following messages:

Started building sites …
Built site for language en:
14 of 14 drafts rendered
0 future content
0 expired content
401 regular pages created
1 other pages created
1 non-page files copied
0 paginator pages created
0 created
0 created
total in 1899 ms

But as we discussed above, this “0 created” and “0 created” is redundant. Should this be dropped like we discussed above*?

*: See add disableKinds option on Github.


PS I:\site\website> hugo env

Hugo Static Site Generator v0.19 windows/amd64 BuildDate: 2017-02-27T12:36:30+01:00
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.8"
1 Like

I know it shouldn’t bother me, but it still feels uneasy that I replied on a Github comment on my Github issue, was told that talking about it there wasn’t suited for Github and should make a topic, and so made a topic to discuss the Github comments, only to get no reply.

Is it me, in the sense that I didn’t follow the etiquette for providing feedback? If so, let me know what the correct way is. :slightly_smiling:

Thanks for reading and have a nice weekend!

I would say yes. But I would also tell you that I have more important tasks that is priority for the next half year, so someone else will have to pick up on this and fix it.

Also, try the --quiet option.

1 Like

Thanks for responding. I totally understand the low priority of this and that the Hugo team has already enough to do. But I’m glad to get a reply and feedback, and that it’s registered for sometime down the road.

It works fine and I can’t reproduce it:

  1. without disableKinds:
Started building sites ...
Built site for language en:
0 of 1 draft rendered
0 future content
0 expired content
27 regular pages created
6 other pages created
0 non-page files copied
0 paginator pages created
2 categories created
total in 34 ms
  1. with disableKinds = ["taxonomy", "taxonomyTerm", "section"]:
Started building sites ...
Built site for language en:
0 of 1 draft rendered
0 future content
0 expired content
27 regular pages created
2 other pages created
0 non-page files copied
0 paginator pages created
total in 51 ms

Also this line doesn’t allow to print information about taxonomies if it’s disabled.

What version are you using?


With this in config.toml:

disableKinds = ["section", "taxonomy", "taxonomyTerm"]

I get the following with hugo server -D:

Started building sites …
Built site for language en:
8 of 8 drafts rendered
0 future content
0 expired content
18 regular pages created
1 other pages created
0 non-page files copied
0 paginator pages created
> 0 tags created
> 5 categories created
total in 151 ms

Using:

hugo env
Hugo Static Site Generator v0.19 windows/amd64 BuildDate: 2017-02-27T12:36:30+01:00
GOOS="windows"
GOARCH="amd64"
GOVERSION=“go1.8”

Hugo Static Site Generator v0.20-DEV darwin/amd64 BuildDate: 2017-04-03T14:41:34+02:00
GOOS="darwin"
GOARCH="amd64"
GOVERSION=“go1.8”

@Jura you need to wait for the next release (or build from source).

That’s totally fine and still much quicker than expected.

1 Like