# How to make a specific layout for amp?

**URL:** <https://discourse.gohugo.io/t/how-to-make-a-specific-layout-for-amp/11536>\
**Category:** support\
**Created:** [April 14, 2018, 3:35pm UTC](https://discourse.gohugo.io/t/how-to-make-a-specific-layout-for-amp/11536 "2018-04-14T15:35:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bussiere](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bussiere/32/5728_2.png) [@bussiere](https://discourse.gohugo.io/u/bussiere)\
**Post date:** [April 14, 2018, 3:35pm UTC](https://discourse.gohugo.io/t/how-to-make-a-specific-layout-for-amp/11536/1 "2018-04-14T15:35:34Z")

</div>

I’am making my own template and i’am looking for a tutorial to generate a custom output.

I would like to have in my theme layout folder an amp folder to generate amp page in public / amp .

How to do that ? Is there a good tutorial somewhere ?

Thanks

---

<div class="post-metadata">

**Author:** ![Beny](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/beny/32/1897_2.png) [@Beny](https://discourse.gohugo.io/u/Beny)\
**Post date:** [April 14, 2018, 3:40pm UTC](https://discourse.gohugo.io/t/how-to-make-a-specific-layout-for-amp/11536/2 "2018-04-14T15:40:59Z")

</div>

Maybe this Link?  
4 Themes made with amp.

[Hugo Themes Amp](https://themes.gohugo.io/tags/amp/)

Hope this helps

---

<div class="post-metadata">

**Author:** ![bussiere](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bussiere/32/5728_2.png) [@bussiere](https://discourse.gohugo.io/u/bussiere)\
**Post date:** [April 14, 2018, 4:19pm UTC](https://discourse.gohugo.io/t/how-to-make-a-specific-layout-for-amp/11536/3 "2018-04-14T16:19:35Z")

</div>

Ok i am looking how to do so i can output the amp folder theme in public/amp

thanks

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [April 14, 2018, 9:11pm UTC](https://discourse.gohugo.io/t/how-to-make-a-specific-layout-for-amp/11536/4 "2018-04-14T21:11:17Z")

</div>

The proper way to achieve this is to use the built-in AMP Output Format provided by Hugo which by default create the AMP file next to the page’s HTML file.

Now as I understand it, you need your AMP file path to be relative to your content/ directory. So your question is, how can I make this AMP file live outside the path of my page.

According to [the doc](https://gohugo.io/templates/output-formats#configure-output-formats) on the matter, the option `path` defines the **sub-path** where the output file is gonna live. I assume **sub path** of the page itself.

So I am not sure there is a way at the moment to achieve what you want. I would suggest you rename this thread to (or create a new one named) :  
**Defining Ouput Format _`path`_ relative to content/ rather than page’s sub-path**
