Skip to content

Commit

Permalink
Jekyll docs template typo - All pages show "Deployment" (#9548)
Browse files Browse the repository at this point in the history
Merge pull request 9548
  • Loading branch information
velle committed Feb 13, 2024
1 parent 12ab350 commit 22c756a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/_includes/docs_contents.html
Expand Up @@ -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 -%}
Expand Down
8 changes: 4 additions & 4 deletions docs/_includes/docs_contents_mobile.html
Expand Up @@ -4,12 +4,12 @@
{% 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>
{% endfor %}
</select>
</div>
</div>

0 comments on commit 22c756a

Please sign in to comment.