Google and the Accelerated Mobile Pages (AMP) Project announced a new Drupal 8 module that provides support for AMP. Google has been working with Lullabot to create the module, and the beta version is now available.
The two are starting to work on a Drupal 7 version of the module as well, which will be available later this month if everything goes according to plan.
"One of the most touted features of Drupal is its flexibility, so making Drupal produce AMP HTML has required a lot of careful consideration of the design approach," says Lullabot's Matthew Tift. "To make Drupal output AMP HTML, we have created an AMP module, AMP theme, and a PHP Library."
"When the AMP module is installed, AMP can be enabled for any content type,' Tift adds. "At that point, a new AMP view mode is created for that content type, and AMP content becomes available on URLs such as node/1/amp or node/article-title/amp. We also created special AMP formatters for text, image, and video fields."
With the module, the AMP theme is triggered for any node delivered on an /amp path, and can be extended using a subtheme to give publishers more flexibility. This enables them to place AMP ad blocks on the AMP page with Drupal's block system.
Tift discusses the module more in this post on the AMP blog.
For WordPress publishers, an AMP plugin was also recently made available.
Image via Wikimedia Commons