Skip to content

balazscsaba2006/craft3-amplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use https://github.com/trendyminds/craft-amplify/ for compatibility with PHP 7.3.

Amplify for Craft 4

Matt Adams's Amplify plugin ported to Craft 3 (<v2.0) and Craft 4 (>= v2.0), improved to support responsive images and iframes.

Install

  • Install with Composer via: composer require balazscsaba2006/amplify
  • Navigate to Settings -> Plugins and click the "Install" button

Features

The plugin uses a Twig filter to run through the AMP filter settings. To add this to your template, you will need to apply the filter like so:

{{ entry.body|amplify|raw }}

By default, this plugin will find and replace image, video, and audio tags with their Google AMP counterparts. The plugin also strips non AMP approved tags from the copy and adds layout="responsive" to amp images to enable responsive image layouts.

About

Twig filter for the Craft CMS to optimize rich text content for Google AMP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages