Nitpick: 135 - 141 maybe more legible if

```python
title = post.title(lang) if post else os.path.basename(gallery)
context = {
    'lang': lang,
    'title': title,
    'description': self.kw['blog_description']
}
```