Changing Post Paths with Giscus Comments
Want to Change Your Hugo Post’s Path?
But don’t want to break Giscus comments wired up to the pathname? Here’s how to optionally bind your post’s comments using the discussionNumber (GitHub Discussion numeric ID) in your post’s frontmatter, letting you choose any slug you want, while allowing other existing posts to continue using pathname to bind comments.
Giscus integration with Hugo is well-documented elsewhere and is beyond the scope of this post. Integration differs based on the theme, but it’s not all that tricky. giscus.app is a huge help.















