Browse Source

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

pull/1/head
Danielle McLean 5 years ago
parent
commit
0a202a215d
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
  1. 8
      wellknowns/views/host_meta.py

8
wellknowns/views/host_meta.py

@ -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'),

Loading…
Cancel
Save