Problem

I have a post in one section of my site, say notes and miscellanea
That is my canonical post.
But I also need it to show up in the work section of my site, possibly with a another name.
A Hugo alias in the yaml front matter does not work, since both sections exist and Hugo gets confused.

Solution

  1. Make sure layouts/redirect/single.html exists within your Hugo folder structure and it contains just this line …
{{- template "alias.html" (dict "Permalink" .Params.target) -}}
  1. Create your orginal post as usual
  2. Then go create a post in your other1 section with the following metadata:
---
title: <Your title here>
#date autogenerated by my archetype. if missing, add date
date: 2025-11-06T08:30:54+05:30 
type: redirect
target: <url-to-redirect-to>
summary: <Optional text, that will appear in the sectiones listing page>
---
  1. The date field is critical. The post might not appear where you expect it, if it’s absent.
    If not date, then you might need to use weight. One of the two is needed.
  2. In my case, the metadata looked like this:
---
title: "The Plan for My New Hetzner VM"
date: 2025-11-06T08:30:54+05:30
type: redirect
target: /nm/2025-11-06/
summary: Alone and helpless, like you've lost your fight 
---
  1. Done! You can see an entry for “The Plan for My New Hetzner VM” in my work section as you see in the pic below. Clicking that will redirect to the actual post in my Notes and Miscellanea section!
Hugo Section with Post entries
  1. Tada 🎉


Feedback on this post?
Mail me at feedback at this domain or continue the discourse here.

P.S. Subscribe to my mailing list!
Forward these posts and letters to your friends and get them to subscribe!



  1. in my case, work ↩︎