diff --git a/layouts/default.html b/layouts/default.html index 61d86ec3..b0925092 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -27,12 +27,15 @@
  • href="/projects/">Projekte
  • href="/members/">Members
  • href="/planet-cccs/">Planet CCCS -
  • href="#">Archiv +
  • href="/archives/articles/">Archiv + <% if (path_section(item,1)=="archives") %> + <% end %> diff --git a/lib/menu.rb b/lib/menu.rb index 482d0258..b6e57d4e 100644 --- a/lib/menu.rb +++ b/lib/menu.rb @@ -1,13 +1,18 @@ -def path_section(item) - if (item.path=='/') then +def path_section(item, n=1) + if (n==1 && item.path=='/') then 'main' else - item.identifier.split('/')[1] + sections = item.identifier.split('/') + if (n