forked from em/receptty.org
		
	Show currently selected nav item
This commit is contained in:
		@@ -61,6 +61,11 @@ nav {
 | 
				
			|||||||
		display:flex;
 | 
							display:flex;
 | 
				
			||||||
		justify-content:center;
 | 
							justify-content:center;
 | 
				
			||||||
		background:$nav-background-secondary;
 | 
							background:$nav-background-secondary;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							a.active {
 | 
				
			||||||
 | 
								color: $nav-anchor-hover-color;
 | 
				
			||||||
 | 
								background-color: $nav-background-primary;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,11 @@
 | 
				
			|||||||
{% macro subnav() %}
 | 
					{% macro subnav() %}
 | 
				
			||||||
<ul>
 | 
					<ul>
 | 
				
			||||||
	{% for item in config.extra.menu %}
 | 
						{% for item in config.extra.menu %}
 | 
				
			||||||
		<li><a href="{{ item.path }}">{{ item.name }}</a></li>
 | 
							<li><a href="{{ item.path }}"
 | 
				
			||||||
 | 
								{% if item.path == current_path %}
 | 
				
			||||||
 | 
								   class="active"
 | 
				
			||||||
 | 
								{% endif %}
 | 
				
			||||||
 | 
							>{{ item.name }}</a></li>
 | 
				
			||||||
	{% endfor %}
 | 
						{% endfor %}
 | 
				
			||||||
</ul>
 | 
					</ul>
 | 
				
			||||||
{% endmacro subnav %}
 | 
					{% endmacro subnav %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user