Skip to content

Commit f7f167f

Browse files
committed
No menu entry if weight <= 0
This patch allows hosting of pages without a menu entry. At the moment, all pages would create a menu entry, even those without a weight set.
1 parent 4bf4118 commit f7f167f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{% assign pg = site.pages | sort: "weight" %}
3232
{% for node in pg %}
3333
<!-- Neglect imprint.html and index.html in either language -->
34-
{% unless node.path contains "imprint" or node.path contains "index" %}
34+
{% unless node.path contains "imprint" or node.path contains "index" or node.weight <= 0 %}
3535
<!-- Set variable "node_conf2019" if node links to a conference page -->
3636
{% assign node_conf2019 = false %}
3737
{% if node.url contains "/conf2019/" %}

0 commit comments

Comments
 (0)