URL structure for AMP outputs

Hi,
I am trying to have 2 different outputs: HTML and AMP

All is working fine, all pages are generated.

My only issue, are the URLs generated, which seem inconsistent to me between page URLs and list URLs.

Page URL is of the format /amp/page-name/, but list URL is of the format /section-name/amp/.

An example site with some dummy content can be found here: https://github.com/DanielMuller/hugo-testing-amp

Am I missing something, or is this just the way it is supposed to be? I was kind of expecting to have all AMP related outputs under the same /amp/ root folder. Mainly to be able to host the amp pages independently or redirect mobile devices towards the amp pages.

Thanks,

Daniel

The questions we can address are about how to output formats and setting paths. If you need info on Google amp stuff, you’ll need to search elsewhere; I imagine they have docs for this.

No issue with AMP code, I got that covered. Only with the path logic.
Perhaps I am overthinking it, but if I compare it to languages, they have all their own “root”, hence my concerns.

23 posts were split to a new topic: Published path of alternate output formats