Site: Filter through just the docs collection (#8170)

Merge pull request 8170
This commit is contained in:
Ashwin Maroli 2020-05-10 14:59:24 +05:30 committed by GitHub
parent 001df60ea0
commit ce483d29a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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