How to get current file name in Hugo without .md
New Courses Coming Soon
Join the waiting lists
This is the template snippet that does the job:
{{ trim .File.LogicalName ".md" }}
→ Get my Go Handbook
Here is how can I help you:
- COURSES where I teach everything I know
- CODING BOOTCAMP cohort course - next edition in 2025
- BOOKS 16 coding ebooks you can download for free on JS Python C PHP and lots more
- Follow me on X