[wordpress插件] AMP安培

wordpress 插件 文章 2020-02-17 18:50 544 0 全屏看文

AI助手支持GPT4.0

评分
72
描述

The AMP Project is an open-source initiative aiming to make the web better for all.

AMP项目是一项开源计划,旨在使所有人的网络都更好。

AMP enables web experiences that are consistently fast, beautiful and high-performing across distribution platforms.

AMP使跨发行平台的网络体验始终快速,美观和高效。

AMP formerly stood for “Accelerated Mobile Pages”, but now works completely across desktop and mobile.

AMP以前代表“加速的移动页面”,但现在完全可以在台式机和移动设备上使用。

The official AMP plugin for WordPress supports fully integrated AMP publishing for WordPress sites, with robust capabilities and granular publisher controls.

WordPress的官方AMP插件支持针对WordPress网站的完全集成的AMP发布,具有强大的功能和精细的发布者控件。

Features and capabilities provided by the plugin include:

插件提供的功能包括:

    • AMP-first Experiences: enabling full-site AMP experiences without sacrificing

    • AMP优先体验:启用全站点AMP体验而不会牺牲

      the flexibility of the platform or the fidelity of content.

    • 平台的灵活性或内容的保真度。

    • Core Theme Support: enabling AMP compatibility for all core themes, from Twenty Ten all the way through Twenty Twenty.
    • 核心主题支持:启用从20到20一直到20的所有核心主题的AMP兼容性。

    • Compatibility Tool: when automatic conversion of markup to AMP is not possible, debug AMP validation errors with detailed information including the invalid markup and the specific components responsible on site (eg theme, plugin, embed)

    • 兼容性工具:如果无法将标记自动转换为AMP,请使用详细信息调试AMP验证错误,包括无效标记和现场负责的特定组件(例如主题,插件,嵌入)

      ;

      ;

      validation errors are shown contextually with their respective blocks in the editor.

    • 验证错误会在编辑器中以上下文形式显示在其相应的块中。

    • CSS Tree Shaking: automatically remove the majority of unused CSS to bring the total under AMP’s 50KB limit;

    • CSS Tree Shaking :自动删除大部分未使用的CSS,使总数不超过AMP的50KB限制;

      when the total after tree shaking is still over this limit, prioritization is used so that the all-important theme stylesheet important is retained, leaving less important ones to be excluded (e.g. print styles).

    • 当摇树后的总次数仍超过此限制时,将使用优先级排序,以便保留所有重要的主题样式表,而将次要的主题样式表排除在外(例如打印样式)。

    • AMP Stories (beta): the AMP plugin enables the creation, editing, and publishing of AMP Stories in WordPress;

      “> WordPress中的AMP故事;

      leverage the magic of storytelling the WordPress way!

    • 利用WordPress讲故事的魔力!

    The plugin can be configured to follow one of three different template modes: Standard, Transitional, and Reader.

    可以将插件配置为遵循以下三种不同的模板模式之一:标准,过渡和阅读器。

    In Standard mode you use AMP as the framework for your site, and there need not be any separate AMP and non-AMP versions.

    在标准模式下,您将AMP用作站点的框架,并且不需要任何单独的AMP和非AMP版本。

    When configured to operate in Reader and Transitional modes, a given page will have a canonical URL as well as a corresponding (paired) AMP URL.

    当配置为在阅读器和过渡模式下运行时,给定页面将具有规范的URL以及对应的(配对的)AMP URL。

    The AMP plugin is not serving as a mobile theme;

    AMP插件不能用作移动主题;

    it does not redirect mobile devices to the AMP version.

    它不会将移动设备重定向到AMP版本。

    Instead, the AMP version is served to mobile visitors when they find the content on platforms such as Twitter, Pinterest, Google Search, and others.

    取而代之的是,当移动访问者在Twitter,Pinterest,Google搜索等平台上找到内容时,将向移动访问者提供AMP版本。

    Reader mode only supports serving AMP for singular posts, pages, and other post types, whereas Standard and Transitional mode support serving the entire site as AMP.

    Reader模式仅支持为单个帖子,页面和其他帖子类型提供AMP,而Standard和Transitional模式则支持为整个站点提供AMP。

    With the official AMP plugin for WordPress, the WordPress ecosystem is provided with the capabilities and tools it needs to build world-class AMP experiences without deviating from its standard, flexible, and well-known content creation workflow.

    借助适用于WordPress的官方AMP插件,WordPress生态系统提供了构建世界级AMP体验所需的功能和工具,而不会背离其标准,灵活和知名的内容创建工作流程。

    Getting Started

    入门

    To learn more about the plugin and start leveraging its capabilities to power your AMP content creation workflow check the official AMP plugin product site<

    要了解有关该插件的更多信息并开始利用其功能来支持AMP内容创建工作流,请查看官方AMP插件产品官方网站<

    /a>.

    / a>。

    If you are a developer, we encourage you to follow along or 跟进

    https://github.com/ampproject/amp-wp/blob/develop/contributing.md" rel="nofollow">contribute to the development of this plugin on GitHub.

    https://github.com/ampproject/amp-wp/blob/develop/contributing.md“ rel =” nofollow“>为该插件在GitHub上的开发做出贡献。

安装步骤

    1. Upload the folder to the /wp-content/plugins/ directory.
    2. 将文件夹上载到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. If you currently use older versions of the plugin in Reader mode, it is strongly encouraged to migrate to Transitional or Standard mode.

    6. 如果您当前在 Reader 模式下使用旧版本的插件,强烈建议您迁移到 Transitional Standard 模式。

      Depending on your theme/plugins, some development work may be required.

    7. 根据您的主题/插件,可能需要一些开发工作。

下载地址
https://downloads.wordpress.org/plugin/amp.1.4.2.zip
-EOF-

AI助手支持GPT4.0