hugo default RSS injects generator tag with disableHugoGeneratorInject

Created on 10 May 2017  路  3Comments  路  Source: gohugoio/hugo

The default RSS inserts the tag

<generator>Hugo -- gohugo.io</generator>

even when the configuration sets disableHugoGeneratorInject.

I tried to make it conditional on the default file but couldn't figure out how to check the value of disableHugoGeneratorInject in a template.

Most helpful comment

I actually concur with @carandraug that disableHugoGeneratorInject should apply to the RSS template as well. I was also surprised to find that disableHugoGeneratorInject didn't also apply to RSS.

Should I open a feature request? Could this ticket be reopened as made into a feature request?

All 3 comments

disableHugoGeneratorInject is meant for the generator meta tag in HTML files. We don't inject anything in RSS files -- we have a built-in template that _creates_ the XML, including that generator tag. If you don't want it, please provide your own RSS template. For further questions, please use http://discuss.gohugo.io/. Also see Hugo Documentation.

disableHugoGeneratorInject is meant for the generator meta tag in HTML files. We don't inject anything in RSS files -- we have a built-in template that creates the XML, including that generator tag.

It can be spun whatever way you want. I would spun it in that the reason to set disableHugoGeneratorInject is to not have generator tags on pages, whether they are "injected" or default on template.

If you don't want it, please provide your own RSS template.

I already do. I just noticed this surprising behaviour and thought of trying to fix it.

I actually concur with @carandraug that disableHugoGeneratorInject should apply to the RSS template as well. I was also surprised to find that disableHugoGeneratorInject didn't also apply to RSS.

Should I open a feature request? Could this ticket be reopened as made into a feature request?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arikroc picture arikroc  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

crash-dive picture crash-dive  路  3Comments

kaushalmodi picture kaushalmodi  路  3Comments

VoidingWarranties picture VoidingWarranties  路  3Comments