remove pagination since we will only show 3 posts, and add a link at the bottom to ask users to login to see more posts
This commit is contained in:
		
							parent
							
								
									e5c642cc4d
								
							
						
					
					
						commit
						c0bef22dda
					
				| 
						 | 
				
			
			@ -5,16 +5,7 @@
 | 
			
		|||
    {% for post in posts %}
 | 
			
		||||
        {% include 'post.html' %}
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
    <ul class="pager">
 | 
			
		||||
        {% if posts.has_prev %}
 | 
			
		||||
        <li class="previous"><a href="{{ url_for('index', page=posts.prev_num) }}">Newer posts</a></li>
 | 
			
		||||
        {% else %}
 | 
			
		||||
        <li class="previous disabled"><a href="#">Newer posts</a></li>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if posts.has_next %}
 | 
			
		||||
        <li class="next"><a href="{{ url_for('index', page=posts.next_num) }}">Older posts</a></li>
 | 
			
		||||
        {% else %}
 | 
			
		||||
        <li class="next disabled"><a href="#">Older posts</a></li>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </ul>
 | 
			
		||||
<hr>
 | 
			
		||||
To see more posts and to start contributing, <a href="{{ url_for('index') }}"> log in </a>
 | 
			
		||||
<hr>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue