add html page to go with new route
This commit is contained in:
		
							parent
							
								
									9292cb34e7
								
							
						
					
					
						commit
						99035ffe8c
					
				| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
<!-- extend base layout -->
 | 
			
		||||
{% extends "base.html" %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
    {% 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>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Loading…
	
		Reference in New Issue