Copyright 2025

The Valley of Code

A Flavio Copes project

How to get the current url in Hugo
How to get the current url in Hugo
{{ trim .Page.RelPermalink "/"}}

This is the result:

yoursite.com/ebooks -> "ebooks"
yoursite.com/ebooks/php -> "ebooks/php"

Join my AI Workshop !

The Web Development BOOTCAMP cohort starts in February 2026