Include references to the Atom and RSS feeds in the host-meta

This commit is contained in:
Danielle McLean 2017-11-01 11:09:12 +11:00
parent 387e7d859c
commit 0a202a215d
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -24,6 +24,14 @@ def add_links(request, dest):
href=urljoin(base, reverse('wellknowns:manifest')),
rel='manifest', type_='application/json',
),
Link(
href=urljoin(base, reverse('entries:atom')),
rel='alternate', type_='application/atom+xml',
),
Link(
href=urljoin(base, reverse('entries:rss')),
rel='alternate', type_='application/rss+xml',
),
Link(href=license, type_='text/html', rel='license'),
Link(href=license+'rdf', type_='application/rdf+xml', rel='license'),
Link(href=pkg['repository'], type_='text/html', rel='code-repository'),