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>
|
<h4>{{ section.title }}</h4>
|
||||||
<ul>
|
<ul>
|
||||||
{%- for item in section.docs -%}
|
{%- 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 -%}
|
{%- capture item_html -%}
|
||||||
<a href="{{ current_page.url | relative_url }}">
|
<a href="{{ item_page.url | relative_url }}">
|
||||||
{{ current_page.menu_name | default: current_page.title }}
|
{{ item_page.menu_name | default: item_page.title }}
|
||||||
</a>
|
</a>
|
||||||
{% endcapture %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
{% for section in site.data.docs_nav %}
|
{% for section in site.data.docs_nav %}
|
||||||
<optgroup label="{{ section.title }}">
|
<optgroup label="{{ section.title }}">
|
||||||
{%- for item in section.docs -%}
|
{%- for item in section.docs -%}
|
||||||
{% assign page = site.docs | where: "url", item.link | first %}
|
{% assign item_page = site.docs | where: "url", item.link | first %}
|
||||||
<option value="{{ page.url | relative_url }}">
|
<option value="{{ item_page.url | relative_url }}">
|
||||||
{{- page.menu_name | default: page.title -}}
|
{{- item_page.menu_name | default: item_page.title -}}
|
||||||
</option>
|
</option>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</optgroup>
|
</optgroup>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue