AMP

説明

このプラグインは Accelerated Mobile Pages (アクセラレーテッド・モバイル・ページ、AMP) プロジェクトへのサポートを追加します。AMP は、どこからでも素早く読み込めるモバイルに最適化したコンテンツの提供を目指すオープンソースイニシアチブです。

With the plugin active, all posts on your site will have dynamically generated AMP-compatible versions, accessible by appending /amp/ to the end your post URLs. For example, if your post URL is http://example.com/2016/01/01/amp-on/, you can access the AMP version at http://example.com/2016/01/01/amp-on/amp/. If you do not have pretty permalinks enabled, you can do the same thing by appending ?amp=1, i.e. http://example.com/?p=123&amp=1

Note #1: that Pages and archives are not currently supported. Pages support is being worked on.

注2: このプラグインは AMP コンテンツ生成のみを行い、モバイル端末からの訪問者に対して自動的に表示を切り替えるものではありません。後者は Google 検索などの AMP コンシューマーによって処理されます。詳しくは AMP Project FAQ をご覧ください。

https://github.com/Automattic/amp-wp で開発状況を確認するか、このプラグインの開発に貢献してください。

スクリーンショット

インストール

  1. フォルダーを /wp-content/plugins/ ディレクトリにアップロード
  2. WordPress の「プラグイン」メニューからプラグインを有効化
  3. You may need to refresh your permalinks by going to Settings > Permalinks and tapping the Save button.

FAQ

インストール方法
  1. フォルダーを /wp-content/plugins/ ディレクトリにアップロード
  2. WordPress の「プラグイン」メニューからプラグインを有効化
  3. You may need to refresh your permalinks by going to Settings > Permalinks and tapping the Save button.
自分のサイトの AMP 出力をカスタマイズするには ?

You can tweak a few things like colors from the AMP Customizer. From the Dashboard, go to Appearance > AMP.

開発者レベルのカスタマイズについては https://github.com/Automattic/amp-wp/blob/master/readme.md をご覧ください。

What about ads and shortcodes and such?

https://github.com/Automattic/amp-wp/blob/master/readme.md#handling-media をご覧ください。

What about analytics?

Many plugins are adding AMP support already. If you handling analytics yourself, please see https://github.com/Automattic/amp-wp/blob/master/readme.md#analytics

Google Webmaster Tools is reporting validation errors for my site. How do I fix them?

The best place to start is to open a new discussion in the support forum with details on what the specific validation error is.

なぜページはまだサポートされていないのですか

A wise green Yoda once said, “Patience you must have, my young padawan.” We’re working on it 🙂

評価

Plugin perfectible

This plugin doesn’t work very well and broke too much the website where I put it. There is no option, we can’t have any picture and that is bad for some website.

Horrível

O Google manda instalar isso nos nossos blogs e quando instalamos fica Feio, Horrível, Horroroso, Espantoso… Prefiro 10 vezes meu blog lento que instalar essa coisa horrorosa… Primeiro façam uma coisa útil e bonita, depois me peçam para instalar… E, por favor, não me perturbar mais com isso.

crap

In the beggining it was ok but very poor interface, nothing to configure, can you imagine a web where all sites look the same?
After the last update it screwed all AMP pages, nothing but errors, i had to delete it.
——————————————
ok, AMP project makes pages faster, visitors come fast but leave the site even faster…
i had 30% bounce rate, after implementing AMP pages bounce rate increased up to 80%, ofcourse this isn`t due to this plugin, is is because all AMP pages look like empty papers, poor, agly and repel visitors.

122件のレビューをすべて表示

貢献者と開発者

AMP はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“AMP” has been translated into 13 locales. 翻訳者のみなさん、翻訳へのご協力ありがとございます。

“AMP” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

変更履歴

0.5.1 (2017-08-17)

  • Fix: issues with invalid tags not being stripped out (e.g. script tags) (h/t tmmbecker, fahmi182, pppdog, seejacobscott, RavanH, jenniejj, lkraav, simonrperry for the reports).
  • Fix: issues with dimension extraction for protocol-less and relative URLs (h/t ktmn for the report).

0.5 (2017-08-04)

  • Whitelist Sanitizer: Replace Blacklist Sanitizer with a whitelist-based approach using the AMP spec (props delputnam)
  • Image Dimensions: Replace fastimage with fasterimage for PHP 5.4+. Enables faster downloads and wider support (props gititon)
  • Embed Handlers: Added support for Vimeo, SoundCloud, Pinterest (props amedina) and PlayBuzz (props lysk88)
  • Analytics: UI for easier addition of analytics tags (props amedina)
  • Fix: parse query strings properly (props amyevans)
  • Fix: Old slug redirect for AMP URLs (props rahulsprajapati)
  • Fix: Handle issues with data uri images in CSS (props trepmal)
  • Fix: Add amp-video js for amp-video tags (props ptbello)
  • Fix: Output CSS for feature image (props mjangda)
  • Fix: Fix attribute when adding AMP Mustache lib (props luigitec)
  • Fix: Various documentation updates (props piersb, bhhaskin)
  • Fix: PHP Warnings from register_customizer_ui (props jahvi)
  • Fix: Coding Standards (props paulschreiber)

0.4.2 (2016-10-13)

  • Fix: Prevent validation errors for html tag (h/t Maxime2 and everyone else that reported this error)
  • Fix: Handle variable name conflict that was causing content_max_width to be ignored (h/t mimancillas)
  • Fix: Prevent errors when nodes don’t have attributes (h/t stephenmax)
  • Fix: Back-compat for 4.5 (add sanitize_hex_color function, h/t xotihcan)
  • Fix: Handle gif featured images (h/t protocolil)
  • ドキュメントを更新 (props troyxmccall)

0.4.1 (2016-10-10)

  • Fix: Don’t fire the_content for featured image output
  • Fix: Don’t show comment link when disabled and no comments on post (h/t neotrope)
  • Fix: strip !important from inline styles (h/t compointdesigner and enriccardonagmailcom)

0.4 (2016-10-06)

  • New template: spiffy, shiny, and has the fresh theme smell (props allancole and the Automattic Theme Team).
  • Warning: The template update has potential breaking changes. Please see https://wordpress.org/support/topic/v0-4-whats-new-and-possible-breaking-changes/
  • AMP Customizer: Pick your colors and make the template your own (props DrewAPicture and 10up)
  • 修正: インラインスタイルのサポート (props coreymckrill).
  • Fix: no more fatal errors when tags not supported by post type (props david-binda)
  • Fix: no more unnecessary <br> tags.
  • Fix: sanitize children of removed nodes (like empty <a> tags) (props Maxime2).
  • Fix: no more broken YouTube URLs with multiple ?s.
  • Fix: properly handle tel and sms schemes (h/t soundstrategies).
  • 修正: 無効化時に amp エンドポイントを削除。
  • New filter: amp_pre_get_permalink if you want a completely custom AMP permalink.

0.3.3 (Aug 18, 2016)

  • Handle many more validation errors (props bcampeau and alleyinteractive).
  • New filter: amp_post_template_dir (props mustafauysal).
  • New template: Nav bar is now it’s own template part (props jdevalk).
  • Better ratio for YouTube embeds.
  • Fix: better timezone handling (props rinatkhaziev).
  • Fix: better handling of non-int dimensions (like 100%).
  • Fix: better handling of empty dimensions.
  • Fix: autoplay is a bool-like value.
  • Fix: breakage when using the query_string hook (h/t mkuplens).
  • Fix: don’t break really large Twitter IDs.
  • Fix: don’t break Instagram shortcodes when using URLs with querystrings.
  • Readme improvements (props nickjohnford, sotayamashita)

0.3.2 (Mar 4, 2016)

  • Jetpack 統計情報に対応。
  • Better version of Merriweather and use system fonts for sans-serif (props mattmiklic).
  • Move font to stylesheet so it can be more easily overridden (props mattmiklic).
  • Fix: Template loading issues on Windows. (Thanks to everyone who reported this, especially w33zy for pointing out the validate_file issue.)
  • Fix: don’t run AMP on post comment feeds (props kraftbj).
  • Fix: un-break pagination when using a static home page with multiple pages.
  • Fix: force amp-iframe to use https to validate correctly (props mister-ben).
  • Fix: validation for target and video/audio attributes.
  • Fix: clipped images in galleries (thanks tobaco).

0.3.1 (Feb 24, 2016)

  • Allow custom query var (props vaurdan).
  • Fix AMP URLs for non-pretty permalinks (props rakuishi).
  • パスワード保護された投稿向けの修正。
  • Fix dimension extraction for schema-less or relative image URLs.
  • Better fallback for images with no dimensions.
  • Validation fixes for a tags (props kraftbj).
  • Updated AMP boilerplate.
  • Allow on tags for elements (props Steven Evatt).
  • Prefixed class names.

0.3 (Feb 18, 2016)

  • Fetch dimensions for hotlinked images.
  • amp-facebook サポートを追加。
  • Add some new actions and filters (e.g. amp_init).
  • Fix validation errors for [gallery] shortcodes.
  • Fix issues with path validation on Windows.
  • Fix issues with really squeezed layout.
  • Breaking change: style.css no longer contains the ` tag. If you have a custom stylesheet, you need to update it to remove the tag.
  • Breaking change: single.php no longer includes the AMP boilerplate styles. They are instead added via the amp_post_template_head hook. If you have a custom template, please remove the boilerplate styles.

0.2 (Jan 28, 2016)

  • 非常に多数の互換性および妥当性対応修正
  • 非常に多数のカスタマイズ性改善

0.1

  • 最初のバージョン