Trying to get back into the game again here after a longer period with RoR. Creating the template shouldn't be too much of a problem, the official AMP site provides a lot of guidance. The main issue I see is how to get the content into the AMP-version without having to duplicate our markdown-files (if possible).
Let's take a blog post as an example (after years in SEO, I can say with confidence that AMPs are most important for the type of longtail content that can be found in blog posts or similar).
Say you want to create AMP-versions of all your
1. Your template for blog posts would probably be located in
2. The text for your posts would probably be located in
3. So ideally we would want to create a template, perhaps called
theme-name/layout/posts/ (i.e. same as in step 1)
4. The old template should have a canonical that links to AMP path, the new template should have a canonical that links to original
5. Step four could probably be handled with frontmatter (for example a second slug-tag named
amp-slug or similar
Not superfamiliar with Hugo so wondering if this is possible or if we have to do something like the following...
1. Somehow duplicate all posts in
content/posts/ on build so duplicates can be found in
2. Create a template called
3. Same as step 4-5 above
Reflections on this?