1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 05:16:03 +02:00

feat(core): blog template updates #186

This commit is contained in:
Awilum
2019-08-23 14:43:42 +03:00
parent 3fc0fc38ce
commit cb99f4004c

View File

@@ -4,7 +4,9 @@
<h1 class="text-center">{{ entry.title }}</h1>
{# pagination #}
{% set page = query.page %}
{% set entries_limit = entries.fetch('blog').entries_limit %}
{% set entries_length = entries.fetchAll('blog', {'order_by': {'field': 'published_at', 'direction': 'desc'}})|length %}
{% set entries_pages = (entries_length/entries_limit)|round %}