Throw out support for AMP, because AMP sucks anyway
This commit is contained in:
parent
59e40b551b
commit
5f9aca20c4
8 changed files with 0 additions and 192 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue