Hugo disableHugoGeneratorInject doesn't work


#1

As listed on this page: https://gohugo.io/overview/configuration/

Version: 0.25.1 and also 0.22-DEV, same issue in both


#2

It works.


view-source:http://hugotest.bep.is/

Which must mean you have something other stuff going on, hard to say with so little info, but I will guess that you have put your disableHugoGeneratorInject after a TOML map and by that made it non-existant.


#3

On an added note:

Why would you want to disable this? It is only injected on the home page if no generator is present, and should be very little to ask in return for this free piece of software.


#4

Good point. I’ll keep it!