amp-jekyll icon indicating copy to clipboard operation
amp-jekyll copied to clipboard

Amp generation doesn't respect the permalink configuration

Open vndmtrx opened this issue 7 years ago • 2 comments

I noticed that when a different permalink configuration is used, the generation of the amp page does not follow the same pattern. I believe this could have relation with #27.

For example, I am attaching the configuration files of a project in which the generated link should be /2017/05/15/welcome-to-jekyll.html and the plugin is generating /amp/2017/05/15/welcome-to-jekyll/ for the amp page, when they should generate a /amp/2017/05/15/welcome-to-jekyll.html page.

All the rest is the same from jekyll new site plus the configs the project's README.md.

layout_teste.zip

vndmtrx avatar May 15 '17 13:05 vndmtrx

Inspecting the code, I notice that amp-jekyll uses site.pages to store the newly generated amp pages, and these pages follow the pages url pattern.

Looking futher, I came with a conclusion that to make this work in respect of URL pattern from original post, it need changes on the way Jekyll builds pages and posts.

I don't know how this could be achieved here, but I let this for future users that encounter the same problem as I.

vndmtrx avatar May 28 '17 19:05 vndmtrx

Same Problem. Any update?

sbkv1 avatar Oct 26 '22 21:10 sbkv1