Provide simple support for fetching entries in AMP format - can't handle images yet and needs some other tweaks, but works nicely so far c:

This commit is contained in:
Danielle McLean 2018-01-13 14:49:38 +11:00
parent 3e4f55fa9c
commit 40ead1bbe1
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
9 changed files with 131 additions and 1 deletions

View file

@ -35,6 +35,10 @@
{{ entry.updated | naturaltime }}
</time>
{% endif %}
<a class="u-url" href="{{ entry.amp_url }}">
<i class="fas fa-bolt"></i>
amp
</a>
{% shortlink entry as short %}<a class="u-url" href="{{ short }}">
<i class="fas fa-link"></i>
{{ short | friendly_url }}