Mercurial > libervia-web
view libervia/__init__.py @ 1466:cff720e26089
pages (blog/view): activate pagination when a single item is shown:
`previous_page_url` and `next_page_url` are set when `item_id` is used. For now, they are
both activated even if there is no item before or after, as it would request to make extra
request to check it. This may be improved in 0.9 by using internal cache.
fix 399
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 30 Sep 2021 17:04:22 +0200 |
parents | ac2374c92294 |
children |
line wrap: on
line source
import os.path version_file = os.path.join(os.path.dirname(__file__), "VERSION") with open(version_file) as f: __version__ = f.read().strip()