For one of the projects we have to implement the AMP pages for sitewide use with Taxonomy Terms. Currently AMP supports only content types.
We need to have a functionality for all major content entities such as Taxonomies, Users etc.
For this issue/request we can start with taxonomies.
Since taxonomy is an entity it will also have a view mode
available.
We create a view mode for the taxonomy and add it in the config
We add use said view mode and force that to be called on AMP pages.
We add check if the AMP is enabled for taxonomy.
We enable only that page to be the AMP
Add amphtml tag in non amp pages
Needs work
3.4
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.