Make it possible to hide pages from the top navigation
This commit is contained in:
		@@ -25,7 +25,9 @@
 | 
				
			|||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
{% if DISPLAY_PAGES_ON_MENU -%}
 | 
					{% if DISPLAY_PAGES_ON_MENU -%}
 | 
				
			||||||
    {% for pg in pages %}
 | 
					    {% for pg in pages %}
 | 
				
			||||||
 | 
					        {% if pg.relative_source_path not in HIDDEN_PAGES %}
 | 
				
			||||||
                    <li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li>
 | 
					                    <li{% if pg == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a></li>
 | 
				
			||||||
 | 
					        {% endif %}
 | 
				
			||||||
    {% endfor %}
 | 
					    {% endfor %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
{% if DISPLAY_CATEGORIES_ON_MENU -%}
 | 
					{% if DISPLAY_CATEGORIES_ON_MENU -%}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,6 +45,8 @@ LINKS = (
 | 
				
			|||||||
    ('Jinja2', 'http://jinja.pocoo.org/'),
 | 
					    ('Jinja2', 'http://jinja.pocoo.org/'),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					HIDDEN_PAGES = ()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Social widget
 | 
					# Social widget
 | 
				
			||||||
SOCIAL = (
 | 
					SOCIAL = (
 | 
				
			||||||
    ('Matrix', 'https://matrix.to/#/@gergely:polonkai.eu'),
 | 
					    ('Matrix', 'https://matrix.to/#/@gergely:polonkai.eu'),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user