Add rel="shortlink" on the AMP pages too

This commit is contained in:
Danielle McLean 2018-01-24 14:09:26 +11:00
parent e5a44fd38c
commit f6a0adfb56
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -4,6 +4,7 @@
<meta charset="utf-8" />
<title>{{ entry.title }} ~ {% site_name %}</title>
<link rel="canonical" href="{% absolute_url entry.url %}">
{% shortlink entry as short %}<link rel="shortlink" href="{% absolute_url short %}" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script class="p-json-ld" type="application/ld+json">
{{ entry.json_ld | jsonify }}
@ -131,7 +132,7 @@
amp
</a>
{% shortlink entry as short %}<a class="u-url" href="{% absolute_url short %}">
<a class="u-url" href="{% absolute_url short %}">
🔗
{{ short | friendly_url }}
</a>