Get .Name of a shortcode


#1

Hello,

I am setting up my shortcodes, but missing a valuable feature: Having excess to the .Name of the shortcode as a shortcode variable. This would be really helpful in combination with .Parent, so that I can do some conditional action within a nested shortcode, depending on the Parent shortcode.

I think this would be very little code to implement, but I have no experience with programming in go. So how do you feel about this wish?


#2

I think It’s a good idea and should be easy to add. If you create an issue here https://github.com/gohugoio/hugo/issues you may be lucky and get it for Christmas …


#3

Thanks, that would be awesome. I just created an issue


#4