Skip to content

How to get the current url in Hugo

FULL-STACK WEB DEVELOPMENT BOOTCAMP

2024 COHORT SIGNUPS END TOMORROW

{{ trim .Page.RelPermalink "/"}}

This is the result:

yoursite.com/ebooks -> "ebooks"
yoursite.com/ebooks/php -> "ebooks/php"
→ Get my Go Handbook
  • Learn modern web development in my BOOTCAMP (SIGNUP END TOMORROW FEB 20, 2024)
  • THE VALLEY OF CODE (+ PRO), your web development manual
  • I wrote 15+ coding BOOKS, all available in THE VALLEY OF CODE PRO
  • Indie solopreneur internet business masterclass SOLO LAB (summer 2024)