提交 f9f4b8ae 编写于 作者: S Samy Pessé

Fix display for articles without paths in summary

上级 819f3bc9
......@@ -3,14 +3,20 @@
<li class="chapter {% if article.path == file.path and not article.anchor %}active{% endif %}" data-level="{{ article.level }}" {% if article.path %}data-path="{{ article.path|resolveFile }}"{% endif %}>
{% if article.path %}
<a href="{{ article.path|contentURL }}{{ article.anchor }}">
{% else %}
{% elif article.url %}
<a target="_blank" href="{{ article.url }}">
{% else %}
<span>
{% endif %}
{% if article.level != "0" %}
<b>{{ article.level }}.</b>
{% endif %}
{{ article.title }}
{% if article.path or article.url %}
</a>
{% else %}
</span>
{% endif %}
{% if article.articles.length > 0 %}
<ul class="articles">
......
......@@ -72,11 +72,6 @@
position: relative;
}
span {
cursor: not-allowed;
.opacity(0.3);
}
&.active > a, a:hover {
color: @sidebar-link-hover-color;
background: @sidebar-link-hover-background;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册