提交 285985b5 编写于 作者: C chomik

relative_url fix in docs menu

上级 ad95b458
...@@ -15,7 +15,7 @@ page-title: Documentation ...@@ -15,7 +15,7 @@ page-title: Documentation
<div class="list-group list-group-transparent mb-0"> <div class="list-group list-group-transparent mb-0">
{% for p in site.data.docs %} {% for p in site.data.docs %}
{% assign doc = site.docs | where: "slug", p.page | first %} {% assign doc = site.docs | where: "slug", p.page | first %}
<a href="{{ site.base }}{{ doc.url }}" class="list-group-item list-group-item-action{% if page.url == doc.url %} active{% endif %}"> <a href="{{ site.base }}{{ doc.url | relative_url }}" class="list-group-item list-group-item-action{% if page.url == doc.url %} active{% endif %}">
{{ doc.title }} {{ doc.title }}
</a> </a>
{% endfor %} {% endfor %}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册