kopia lustrzana https://github.com/lowtechmag/solar
fix pagination issues
rodzic
0810095010
commit
032edce5fa
|
@ -212,6 +212,7 @@ function getServerData() {
|
|||
}
|
||||
getServerData();
|
||||
|
||||
//mobile menu toggle
|
||||
document.getElementById('menu-s').addEventListener('click', function() {
|
||||
document.getElementById('menu-list').classList.toggle("show");
|
||||
});
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<p class="summary category-obs">There is a lot of potential in past and often forgotten knowledge and technologies when it comes to designing a sustainable society.</p>
|
||||
</div>
|
||||
<ul class="cols">
|
||||
{% for article in articles_page.object_list %}
|
||||
{% for article in articles %}
|
||||
<li class = "{{article.category|lower|truncate(3,True, '')}}"><article>
|
||||
{% if article.featured_image %}
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
||||
|
@ -34,6 +34,5 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
</section><!-- /#content -->
|
||||
{% if articles_page.has_other_pages() %} {% include 'pagination.html' %} {% endif %}
|
||||
|
||||
{% endblock content %}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
<ul class="cols recent">
|
||||
{% for article in articles_page.object_list[1 : 9] %}
|
||||
{% for article in articles_page.object_list[1:] %}
|
||||
<li class="{{article.category|lower|truncate(3,True, '')}}">
|
||||
<article>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
||||
|
@ -41,7 +41,7 @@
|
|||
</ul>
|
||||
<!-- /posts-list -->
|
||||
<ul class="cols popular">
|
||||
{% for article in articles[9:] %} {% if article.display == "cover" %}
|
||||
{% for article in articles[12:] %} {% if article.display == "cover" %}
|
||||
<li class="{{article.category|lower|truncate(3,True, '')}}">
|
||||
|
||||
<article>
|
||||
|
|
Ładowanie…
Reference in New Issue