fix: enable pagination for blog

This commit is contained in:
Shivam Mishra 2020-06-02 19:31:54 +05:30
parent 70b4c611db
commit 3daf89d69c
2 changed files with 17 additions and 10 deletions

View file

@ -3,6 +3,10 @@
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
&.result {
border-bottom: none;
}
}
.blog-card {

View file

@ -20,16 +20,19 @@
}}
<div class="blog-list-content">
<div id="blog-list" class="blog-list">
{% if not result -%}
<div class="text-muted" style="min-height: 300px;">
{{ no_result_message or _("Nothing to show") }}
</div>
{% else %}
{% for item in result %}
{{ item }}
{% endfor %}
{% endif %}
<div class="website-list" data-doctype="{{ doctype }}" data-txt="{{ txt or '[notxt]' | e }}">
<div id="blog-list" class="blog-list result">
{% if not result -%}
<div class="text-muted" style="min-height: 300px;">
{{ no_result_message or _("Nothing to show") }}
</div>
{% else %}
{% for item in result %}
{{ item }}
{% endfor %}
{% endif %}
</div>
<button class="btn btn-light btn-more btn {% if not show_more -%} hidden {%- endif %}">{{ _("Load More") }}</button>
</div>
</div>
{% endblock %}