trendyminds/amplify
Composer 安装命令:
composer require trendyminds/amplify
包简介
Twig filter for the Craft CMS 3 to optimize rich text content for Google AMP.
关键字:
README 文档
README
Matt Adams's Amplify plugin ported to Craft 3, improved to support responsive images and iframes.
Install
- Install with Composer via:
composer require trendyminds/amplify - Navigate to
Settings -> Pluginsand 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.
统计信息
- 总下载量: 3.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-03-26