Skip to content

Commit

Permalink
Fix top-level navigation links
Browse files Browse the repository at this point in the history
These navigation links were not being set deterministically before. With
this change, they should always point to the introductory material.
  • Loading branch information
tsandall committed Apr 4, 2017
1 parent fac8c74 commit 81e64d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions site/_includes/nav-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
{% when 'MAIN_GET_OPA' %}
{% assign page_get = page %}
{% when 'MAIN_DOCUMENTATION' %}
{% assign page_doc = page %}
{% if page.doc_id == 'WHAT_IS_POLICY_ENABLEMENT' %}
{% assign page_doc = page %}
{% endif %}
{% when 'MAIN_EXAMPLES' %}
{% assign page_xmp = page %}
{% if page.xmp_id == 'WORKING_WITH_THE_OPA_REPL' %}
{% assign page_xmp = page %}
{% endif %}
{% when 'MAIN_COMMUNITY' %}
{% assign page_com = page %}
{% endcase %}
Expand Down

0 comments on commit 81e64d4

Please sign in to comment.