Site: Filter through just the docs collection (#8170)
Merge pull request 8170
This commit is contained in:
parent
001df60ea0
commit
ce483d29a4
|
@ -4,7 +4,7 @@
|
|||
<h4>{{ section.title }}</h4>
|
||||
<ul>
|
||||
{%- for item in section.docs -%}
|
||||
{%- assign p = site.documents | where: "url", item.link | first %}
|
||||
{%- assign p = site.docs | where: "url", item.link | first %}
|
||||
<li {%- if page.url == p.url %} class="current" {%- endif -%}><a href="{{ p.url | relative_url }}">
|
||||
{{- p.menu_name | default: p.title -}}
|
||||
</a></li>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% for section in site.data.docs_nav -%}
|
||||
<optgroup label="{{ section.title }}">
|
||||
{%- for item in section.docs -%}
|
||||
{% assign p = site.documents | where: "url", item.link | first %}
|
||||
{% assign p = site.docs | where: "url", item.link | first %}
|
||||
<option value="{{ p.url | relative_url }}">
|
||||
{{- p.menu_name | default: p.title -}}
|
||||
</option>
|
||||
|
|
Loading…
Reference in New Issue