Jekyll docs template typo - All pages show "Deployment" (#9548)
Merge pull request 9548
This commit is contained in:
parent
12ab35011f
commit
22c756a2e0
|
@ -4,13 +4,13 @@
|
|||
<h4>{{ section.title }}</h4>
|
||||
<ul>
|
||||
{%- for item in section.docs -%}
|
||||
{%- assign current_page = site.docs | where: "url", item.link | first -%}
|
||||
{%- assign item_page = site.docs | where: "url", item.link | first -%}
|
||||
{%- capture item_html -%}
|
||||
<a href="{{ current_page.url | relative_url }}">
|
||||
{{ current_page.menu_name | default: current_page.title }}
|
||||
<a href="{{ item_page.url | relative_url }}">
|
||||
{{ item_page.menu_name | default: item_page.title }}
|
||||
</a>
|
||||
{% endcapture %}
|
||||
<li{%- unless current_page.url != page.url -%} class="current"{%- endunless -%}>{{ item_html }}</li>
|
||||
<li{%- unless item_page.url != page.url -%} class="current"{%- endunless -%}>{{ item_html }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor -%}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{% for section in site.data.docs_nav %}
|
||||
<optgroup label="{{ section.title }}">
|
||||
{%- for item in section.docs -%}
|
||||
{% assign page = site.docs | where: "url", item.link | first %}
|
||||
<option value="{{ page.url | relative_url }}">
|
||||
{{- page.menu_name | default: page.title -}}
|
||||
{% assign item_page = site.docs | where: "url", item.link | first %}
|
||||
<option value="{{ item_page.url | relative_url }}">
|
||||
{{- item_page.menu_name | default: item_page.title -}}
|
||||
</option>
|
||||
{%- endfor %}
|
||||
</optgroup>
|
||||
|
|
Loading…
Reference in New Issue