Skip to content

Commit ab488c8

Browse files
committed
requested change: remove special cases
This removes the special cases of imprint and index. Those did not have weight defined, while all other had. From this on, all pages without weight defined will not been shown in the menu, not only those two.
1 parent f7f167f commit ab488c8

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" or node.weight <= 0 %}
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)