Different filenames output (/index1.html, /index2.html"). Is it possible?

#1

Hello,

So as the title says, I want to output different urls, based on .html termination.
My structure:

layouts
– money
---- send.html
---- confirm.html

content
– money
---- send.md
---- confirm.md

So I need to have:
mywebsite.com/money/send.html
mywebsite.com/money/confirm.html

Is this possible with Hugo?

The only result I can get is:
/money/send/ or /money/confirm/
I even tried changing type and layout in frontmatter, but I may have trouble understanding the structure. I didn’t found anything in Hugo documentation about this.

Thanks!

0 Likes

#2

Hi,

You can use the uglyURLs configuration: https://gohugo.io/content-management/urls/#ugly-urls

0 Likes