Use the entry.title property to set the page title

This commit is contained in:
Danielle McLean 2017-10-27 17:45:38 +11:00
parent 286caadf40
commit d8a6dbf2bf
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -16,6 +16,6 @@ def entry(request, id, slug=None):
return redirect(entry.url, permanent=True) return redirect(entry.url, permanent=True)
return render(request, 'entries/entry.html', { return render(request, 'entries/entry.html', {
'entry': entry, 'entry': entry,
'title': entry.name or entry.content, 'title': entry.title,
'meta': entry.as_meta(request) 'meta': entry.as_meta(request)
}) })