Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M3P2 HTML Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3P2
M3P2 HTML Generator
Commits
847efb09
Commit
847efb09
authored
Jan 28, 2021
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: display links to lessons in the top of the pages
parent
e36a3f1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
base.html.twig
user/themes/textbook/templates/partials/base.html.twig
+28
-1
No files found.
user/themes/textbook/templates/partials/base.html.twig
View file @
847efb09
...
...
@@ -26,7 +26,7 @@
{{
assets.css
()
|
raw
}}
{%
block
javascripts
%}
{# TODO: ZEPTO JS PL
S
#}
{# TODO: ZEPTO JS PL
EASE
#}
{# Yes! We managed to remove all these crappy dependencies \o/ #}
{# … No we did not, not until we remake the language selector #}
{#
{
% do assets.addJs('jquery', 101) %}#}
...
...
@@ -110,6 +110,33 @@
{%
block
messages
%}
{%
include
'partials/messages.html.twig'
ignore
missing
%}
{%
endblock
%}
{# page.url
{{
page.url }}#}
{# <pre>#}
{#
{{
page.frontmatter|var_dump }}#}
{# </pre>#}
{# <pre>#}
{#
{{
page.header|var_dump }}#}
{# </pre>#}
{%
if
page.header
%}
{%
if
page.header.lessons
%}
<nav>
<h4>
📚
</h4>
<ul>
{%
for
lesson
in
page.header.lessons
%}
<li>
<a
href=
"/
{{
language_selector.current
}}
/lessons/
{{
lesson.slug
}}
"
>
{{
lesson.slug
}}
</a>
{#
{{
lesson.slug }}#}
</li>
{%
endfor
%}
</ul>
</nav>
{%
endif
%}
{%
endif
%}
{%
block
content
%}{%
endblock
%}
</section>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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