Throw out support for AMP, because AMP sucks anyway

This commit is contained in:
Danielle McLean 2018-06-12 12:27:35 +10:00
parent 59e40b551b
commit 5f9aca20c4
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
8 changed files with 0 additions and 192 deletions

View file

@ -13,11 +13,3 @@ def entry(request, kind, id, slug=None):
'title': entry.title,
'meta': entry.as_meta(request)
}
@render_to('entries/entry_amp.html')
def entry_amp(request, kind, id, slug=None):
entry = get_object_or_404(Entry, pk=id)
if request.path != entry.amp_url:
return redirect(entry.amp_url, permanent=True)
return {'entry': entry}