Add AMP link markup to regular page?
-
Hi,
I’m loving the plugin. It’s the only AMP plugin I have found that also works for pages and works without crashing.
However, as far as I can tell currently all the AMP pages stand alone as orphans.
According to https://www.ampproject.org/docs/get_started/create/basic_markup.html
AMP HTML documents MUST:
[…]
Contain a <link rel=”canonical” href=”$SOME_URL” /> tag inside their head that points to the regular HTML version of the AMP HTML document or to itself if no such HTML version exists.As the HTML version exists, we should point to that, not the AMP HTML document, otherwise we may incur a duplicate content penalty.
Furthermore, https://www.ampproject.org/docs/guides/discovery.html says
Make Your Page Discoverable
In some cases, you might want to have both a non-AMP and an AMP version of the same page, for example, a news article. Consider this: If Google Search finds the non-AMP version of that page, how does it know there’s an AMP version of it?Linking pages with <link>
In order to solve this problem, we add information about the AMP page to the non-AMP page and vice versa, in the form of <link> tags in the <head>.
Add the following to the non-AMP page:
<link rel=”amphtml” href=”https://www.example.com/url/to/amp/document.html”>
And this to the AMP page:<link rel=”canonical” href=”https://www.example.com/url/to/full/document.html”>
In the case of this plugin, it would therefore be
From the original page:
<link rel=”amphtml” href=”$SOME_URL/amp/”>
and from the AMP page:
<link rel=”canonical” href=”$SOME_URL” />It would also be useful to have the option to automatically add a hyperlink from the AMP version back to the original page
eg.
View full version of this pageThanks for considering this suggestion!
- The topic ‘Add AMP link markup to regular page?’ is closed to new replies.