diff --git a/_config.yml b/_config.yml index 60f8ac0..e25612b 100644 --- a/_config.yml +++ b/_config.yml @@ -4,6 +4,7 @@ defaults: path: "" values: layout: "page" + menuorder: 100 langs: de: "DE" en: "EN" diff --git a/_includes/menu.html b/_includes/menu.html index 340fc5a..335261f 100644 --- a/_includes/menu.html +++ b/_includes/menu.html @@ -1,4 +1,5 @@ -{%- for node in site.pages -%} +{% assign sorted_nodes = site.pages | sort:"menutitle" | sort:"menuorder" %} +{%- for node in sorted_nodes -%} {%- if node.lang == page.lang and node.menutitle -%} {%- if node.url == page.url -%}