added Chappatte cartoon on homepage

This commit is contained in:
2023-02-24 16:12:12 +01:00
parent 7a2ba16e2f
commit b7a8c64333
4 changed files with 24 additions and 6 deletions

View File

@@ -14,10 +14,14 @@ from ..models.user import User
def home(request):
# get the last created posts
last_ten = BlogRecordService.get_last_created(request)
# get Chappatte cartoon
entry = BlogRecordService.by_id(request, 95)
return {
'page_title': "Evaṃ me sutaṃ",
'last_ten': last_ten,
'cartoon_title': entry.title,
'cartoon_url': entry.body,
}