Generate the site twice (for amp html)


I read about I would like to generate my site twice.
Once normal and once ‘amp’ friendly.

Do I run hugo twice? Can i run two hugo ‘watches’ on the same folder (and output folder)?

There was already discussion to output json to use for ‘consumption’.
There is RSS generated.

Is there a more supported way to do this? Are there plans to do this?



You ned to build it twice. As to watch, I suggest you test it.

1 Like


Since it seems that the “AMP” site need to referenced using a specific rel=canonical directive, i suppose it will be necessary to generate the Amp-site in a single run in order to properly map the URLs.

For anybody interested there’s an interesting article on moz, published today

1 Like