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: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
1 changed files with 2 additions and 1 deletions

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>