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:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user