Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amp generation doesn't respect the permalink configuration #29

Open
vndmtrx opened this issue May 15, 2017 · 2 comments
Open

Amp generation doesn't respect the permalink configuration #29

vndmtrx opened this issue May 15, 2017 · 2 comments

Comments

@vndmtrx
Copy link

vndmtrx commented May 15, 2017

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
Copy link
Author

vndmtrx commented May 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@vndmtrx and others