add side nav with sibling pages
This commit is contained in:
		
							parent
							
								
									23503525a6
								
							
						
					
					
						commit
						1ba6f03529
					
				
					 1 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,4 +1,17 @@
 | 
				
			||||||
{% extends "site_base.html" %}
 | 
					{% extends "subnav_base.html" %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{% block subnav %}
 | 
				
			||||||
 | 
					    <ul class="nav nav-list">
 | 
				
			||||||
 | 
					        <li class="nav-header">{{ page.parent }}</li>
 | 
				
			||||||
 | 
					        {% for sibling in siblings %}
 | 
				
			||||||
 | 
					            {% if sibling == page %}
 | 
				
			||||||
 | 
					                <li>{{ sibling }}</li>
 | 
				
			||||||
 | 
					            {% else %}
 | 
				
			||||||
 | 
					                <li><a href="{% url cms_page sibling.path %}">{{ sibling }}</a>
 | 
				
			||||||
 | 
					            {% endif %}
 | 
				
			||||||
 | 
					        {% endfor %}
 | 
				
			||||||
 | 
					    </ul>
 | 
				
			||||||
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block body %}
 | 
					{% block body %}
 | 
				
			||||||
    <h1>{{ page.title }}</h1>
 | 
					    <h1>{{ page.title }}</h1>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue