Get .Name of a shortcode

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?

I think It’s a good idea and should be easy to add. If you create an issue here Issues · gohugoio/hugo · GitHub you may be lucky and get it for Christmas …

4 Likes

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