Skip to content

Commit 77d33be

Browse files
2 parents 7b23048 + d1d3edd commit 77d33be

File tree

466 files changed

+405
-535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+405
-535
lines changed

_includes/layout/nav-bar

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,21 @@ A horizontal navigation bar with links.
2121
{%- assign links = "" -%}
2222
{%- for p in candidates -%}
2323
{%- capture p-dir -%} {%- include util/dir path=p.url -%} {%- endcapture -%}
24-
{%- if p-dir == page-dir -%}
25-
{%- comment -%} Sort index page before the others. {%- endcomment -%}
26-
{%- assign url = p.url | replace: "/index", "/!index" -%}
27-
{%- assign title = p.nav-title | default: p.title
28-
| replace: " ", " " | replace: "-", "‑" -%}
29-
{%- capture link -%}
30-
<li><a href="{{url}}">{{title}}</a></li>
31-
{%- endcapture -%}
32-
{%- unless links == "" -%}
33-
{%- assign links = links | append: "|" -%}
34-
{%- endunless -%}
35-
{%- assign links = links | append: link -%}
36-
{%- endif -%}
24+
{%- if p-dir != page-dir -%} {%- continue -%} {%- endif -%}
25+
{%- unless p.nav-links -%} {%- continue -%} {%- endunless -%}
26+
27+
{%- comment -%} Sort index page before the others. {%- endcomment -%}
28+
{%- assign url = p.url | replace: "/index", "/!index" -%}
29+
30+
{%- assign title = p.nav-title | default: p.title
31+
| replace: " ", "&nbsp;" | replace: "-", "&#8209;" -%}
32+
{%- capture link -%}
33+
<li><a href="{{url}}">{{title}}</a></li>
34+
{%- endcapture -%}
35+
{%- unless links == "" -%}
36+
{%- assign links = links | append: "|" -%}
37+
{%- endunless -%}
38+
{%- assign links = links | append: link -%}
3739
{%- endfor -%}
3840

3941
{%- comment -%}

_pages/contribute/fiji.md

Lines changed: 0 additions & 1 deletion

_pages/contribute/governance.md

Lines changed: 0 additions & 1 deletion

_pages/contribute/index.md

Lines changed: 0 additions & 1 deletion

_pages/contribute/project-ideas.md

Lines changed: 0 additions & 1 deletion

_pages/develop/ij1-ij2-cheat-sheet.md

Lines changed: 0 additions & 1 deletion

_pages/develop/javafx.md

Lines changed: 0 additions & 1 deletion

_pages/events/2008-hackathon-in-dresden.md

Lines changed: 0 additions & 1 deletion

_pages/events/2011-hackathon-in-madison.md

Lines changed: 0 additions & 1 deletion

_pages/events/conference-2015-hackathon.md

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)