fix pagination issues

master
marieotsuka 2018-11-02 15:32:42 -04:00
rodzic 0810095010
commit 032edce5fa
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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");
}); });

Wyświetl plik

@ -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 %}

Wyświetl plik

@ -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>