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

@ -31,6 +31,7 @@ for k in kinds.all:
url(to_pat(kind, page), views.index, name=k.index, kwargs={'kind': k}),
url(to_pat(kind, '/atom'), feeds.AtomByKind(k), name=k.atom),
url(to_pat(kind, '/rss'), feeds.RssByKind(k), name=k.rss),
url(to_pat(kind, id, slug, '/amp'), views.entry_amp, name=k.entry_amp),
url(to_pat(kind, id, slug), views.entry, name=k.entry),
)