kopia lustrzana https://github.com/lowtechmag/solar
fix pagination issues
rodzic
0810095010
commit
032edce5fa
|
@ -212,6 +212,7 @@ function getServerData() {
|
||||||
}
|
}
|
||||||
getServerData();
|
getServerData();
|
||||||
|
|
||||||
|
//mobile menu toggle
|
||||||
document.getElementById('menu-s').addEventListener('click', function() {
|
document.getElementById('menu-s').addEventListener('click', function() {
|
||||||
document.getElementById('menu-list').classList.toggle("show");
|
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>
|
<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>
|
</div>
|
||||||
<ul class="cols">
|
<ul class="cols">
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles %}
|
||||||
<li class = "{{article.category|lower|truncate(3,True, '')}}"><article>
|
<li class = "{{article.category|lower|truncate(3,True, '')}}"><article>
|
||||||
{% if article.featured_image %}
|
{% if article.featured_image %}
|
||||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
||||||
|
@ -34,6 +34,5 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</section><!-- /#content -->
|
</section><!-- /#content -->
|
||||||
{% if articles_page.has_other_pages() %} {% include 'pagination.html' %} {% endif %}
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="cols recent">
|
<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, '')}}">
|
<li class="{{article.category|lower|truncate(3,True, '')}}">
|
||||||
<article>
|
<article>
|
||||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<!-- /posts-list -->
|
<!-- /posts-list -->
|
||||||
<ul class="cols popular">
|
<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, '')}}">
|
<li class="{{article.category|lower|truncate(3,True, '')}}">
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
|
|
Ładowanie…
Reference in New Issue