Skip to content
Snippets Groups Projects
Unverified Commit 7ab1bb4b authored by kogeletey's avatar kogeletey
Browse files

templates: page_macros.html checked not default fix.

parent 6cc34ccd
Branches
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@
{% for s in index.subsections %}
{% set subsection = get_section(path=s) %}
<li class="sidebar__subsection-page">
<input class="sidebar__toggle" type="checkbox" checked="">
<input class="sidebar__toggle" type="checkbox" {% if current_path is starting_with(subsection.path) %}checked{% endif %}>
<svg class="sidebar__toggle-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path fill="currentColor" d="M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z"></path></svg>
{{ subsection.title }}
<ul class="sidebar__subsection">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment