Drupal AMP Theme

I created an AMP subtheme for Drupal 7. To complement the Lullabot AMP library, I created a simple PHP function for replacing images with amp-img, and also implemented the amp-social-share, amp-youtube, amp-sidebar and amp-analytics components and tags. My amp custom CSS is minified using a Gulp task.

AMP Theme Page Preview