mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 15:05:26 +02:00
add page var check
This commit is contained in:
parent
9c8bcba364
commit
112314e8eb
1 changed files with 6 additions and 4 deletions
|
@ -5,10 +5,12 @@
|
|||
{% for firstLevelPage in menu %}
|
||||
<section class="docs-aside__section">
|
||||
<a
|
||||
{% if page._id == firstLevelPage._id%}
|
||||
class="current-page docs-aside__section-title "
|
||||
{% else %}
|
||||
class="docs-aside__section-title "
|
||||
{% if page %}}
|
||||
{% if page._id == firstLevelPage._id%}
|
||||
class="current-page docs-aside__section-title "
|
||||
{% else %}
|
||||
class="docs-aside__section-title "
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if firstLevelPage.uri %}
|
||||
href="/{{ firstLevelPage.uri }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue