文档导航
文档中心
- {% if section_home and section_home.url != page.url and section_home.url != '/docs/' %}
-
本主题目录
+ {% if section_home %}
+ {% if section_home.url != page.url and section_home.url != '/docs/' %}
+
本主题目录
+ {% endif %}
{% endif %}
项目首页
- {% if sibling_pages.size > 1 %}
+ {% if sibling_count > 1 %}
继续阅读
- {% for item in sibling_pages %}
- {% assign item_title = item.title | default: item.name | replace: '.md', '' %}
- {% if item.url == page.url %}
-
{{ item_title }}
- {% else %}
-
{{ item_title }}
+ {% for item in section_pages %}
+ {% if item.path contains 'docs/' and item.path contains '.md' %}
+ {% assign item_title = item.title | default: item.name | replace: '.md', '' %}
+ {% if item.url == page.url %}
+
{{ item_title }}
+ {% else %}
+
{{ item_title }}
+ {% endif %}
{% endif %}
{% endfor %}
@@ -128,21 +139,23 @@