fix: enable pagination for blog
This commit is contained in:
parent
70b4c611db
commit
3daf89d69c
2 changed files with 17 additions and 10 deletions
|
|
@ -3,6 +3,10 @@
|
|||
flex-wrap: wrap;
|
||||
margin-right: -15px;
|
||||
margin-left: -15px;
|
||||
|
||||
&.result {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-card {
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue