Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Web
community
Commits
4c928684
Commit
4c928684
authored
Jun 13, 2019
by
Pili Guerra
Browse files
Template fixes
parent
cc5ad113
Changes
4
Hide whitespace changes
Inline
Side-by-side
content/training/best-practices/contents.lr
View file @
4c928684
_model: page
---
section: training
---
section_id: training
...
...
content/training/resources/contents.lr
View file @
4c928684
_model: page
---
section: training
---
section_id: training
...
...
templates/sidenav.html
View file @
4c928684
...
...
@@ -27,7 +27,7 @@
<nav
class=
"d-none d-sm-block section-nav bg-white sidetopics sticky"
id=
"sidenav-topics"
>
<h4
class=
"text-primary pl-4"
>
{{ _("Topics") }}
</h4>
<ul
class=
"nav nav-pills flex-column"
>
{% for child in this.parent.children %}
{% for child in this.parent.children
|sort(attribute='key')
%}
<li
{%
if
this.is_child_of
(
child.path
)
%}
class=
"toc-entry toc-h2 active nav-item"
{%
else
%}
class=
"toc-entry toc-h2 nav-item"
{%
endif
%}
>
<a
role=
"button"
{%
if
this.is_child_of
(
child.path
)
%}
class=
"nav-link active"
{%
else
%}
class=
"nav-link"
{%
endif
%}
href=
"{{ child.path|url(alt=this.alt) }}"
>
{{ _(child.title) }}
</a>
...
...
templates/two-columns-page.html
View file @
4c928684
...
...
@@ -16,5 +16,4 @@
</div>
<a
href=
"{{ this.parent|url }}"
>
Back to {{ this.parent.title }}
</a>
</div>
</div>
</div>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment