Skip to content
FLAVIO COPES
flaviocopes.com
2026

How to get current file name in Hugo without .md

~~~

This is the template snippet that does the job:

{{ trim .File.LogicalName ".md" }}
Tagged: hugo ยท All topics
~~~

Related posts about hugo: