Jekyll docs template typo - All pages show "Deployment" (#9548)

Merge pull request 9548
This commit is contained in:
velle 2024-02-13 04:01:16 +01:00 committed by GitHub
parent 12ab35011f
commit 22c756a2e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -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 -%}

View File

@ -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>