mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 11:26:31 +00:00
Mark active chapter in summary
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -36,11 +36,11 @@
|
||||
border-bottom: none;
|
||||
text-transform: uppercase;
|
||||
color: #e2edf2;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #242628;
|
||||
text-decoration: none;
|
||||
}
|
||||
&.active a, a:hover {
|
||||
background: #242628;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{% if item.articles.length > 0 %}
|
||||
<ul class="articles">
|
||||
{% for article in item.articles %}
|
||||
<li>
|
||||
<li {% if article._path == _input %}class="active"{% endif %}>
|
||||
<a href="{{ basePath }}/{{ article.path }}">{{ article.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user