-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Experiment with an AMP mode #54
Comments
It's off by default. You can enable it by setting When enabled, any route prefixed with For example, visiting |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should behave, for the most part, like a locale. Configure the global route (either a subdomain or first-segment url), and then check for an AMP-specific layout/template file before falling back to the standard one.
For example:
example.com/amp/blog/new-post
would load/blog/new-post
(essentially ignoring that first segment), and look forresources/views/amp/layout.antlers.html
andresources/views/amp/blog-post.antlers.html
.We should then carry this rendered view through the Live Preview.
We could also make this a paid addon and come with some more boilerplate stuff to help speed up the AMP dev process.
More info on AMP here: https://ampbyexample.com
The text was updated successfully, but these errors were encountered: