在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:juusaw/amp-jekyll开源软件地址:https://github.com/juusaw/amp-jekyll开源编程语言:Ruby 78.2%开源软件介绍:amp-jekyll
Jekyll plugin for creating Accelerated Mobile Page versions of posts. Supports Jekyll version 3 and 4. UsageUsing the gem
plugins:
- amp-jekyll NOTE: Older Jekyll versions (below 3.6.0) use the key Adding the plugin manually
Then perform the following
Setting things upThe AMP standard is somewhat restrictive on allowed HTML elements and requires some extra information on element placing. To make sure that your generated AMP pages are valid by the standard, you can run the AMP version of your post with #development=1 appended to the URL and check the browser's Javascript console for the validation. Several HTML elements must be replaced with tags specified in the AMP specs to ensure compatibility with the standard. The To disable image responsivity, add false to The AMP folderSpecify amp folder in Page linkingThe easiest solution is adding the following conditional expression around the tag.
CSSCSS rules for AMP must be included inline in the Skipping PagesSometimes there are pages we don't want to be turned into AMP pages, normally this is because they require HTML elements or JavaScript that would make them invalid. In any post we want to skip simply add; skip_amp: true And update your
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论