Possible to get the actual filename (HTML)?

I’m trying to generate blocks of my templates with the actual html file name. Everything I see is for the content names.
<section id="{{ .someStatement }}"><a href="#{{ .someStatement }}"></a>
I would like this literal name: image
Output of above code: <section id="page_banner_products><a href="#page_banner_products"></a>

Is this supported?

No, there is no straightforward way to use a template’s name, in this manner.

It should be possible to use the readFile function on a template to get its .File.BaseFileName but that seems like overkill.

This topic was automatically closed after 22 hours. New replies are no longer allowed.