Copyright 2025

The Valley of Code

A Flavio Copes project

How to get current file name in Hugo without .md
How to get current file name in Hugo without .md

This is the template snippet that does the job:

{{ trim .File.LogicalName ".md" }}

Join my AI Workshop !

The Web Development BOOTCAMP cohort starts in February 2026