Skip to content

Commit 4e39913

Browse files
authored
Merge pull request #274 from DE-RSE/zero_weight_hides_site
No menu entry if weight <= 0
2 parents 3b28972 + ab488c8 commit 4e39913

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.weight == nul 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)