Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swc-bb
swc-pages
2019-11-26-Potsdam-Berlin-Python
Commits
cf155463
Commit
cf155463
authored
Sep 05, 2016
by
Greg Wilson
Browse files
Navigation links in footer
parent
a688650d
Changes
5
Show whitespace changes
Inline
Side-by-side
_includes/episode_navbar.html
0 → 100644
View file @
cf155463
{% comment %}
Find previous and next episodes (if any).
Including file must pass episode_navbar_title=true or ...=false to display episode title.
{% endcomment %}
{% for episode in site.episodes %}
{% if episode.url == page.url %}
{% unless forloop.first %}
{% assign prev_episode = prev %}
{% endunless %}
{% unless forloop.last %}
{% assign next_episode = site.episodes[forloop.index] %}
{% endunless %}
{% endif %}
{% assign prev = episode %}
{% endfor %}
{% comment %}
Display title and prev/next links.
{% endcomment %}
<div
class=
"row"
>
<div
class=
"col-md-1"
>
<h3>
{% if prev_episode %}
<a
href=
"{{ page.root }}{{ prev_episode.url }}"
><span
class=
"glyphicon glyphicon-menu-left"
></span></a>
{% else %}
<a
href=
"{{ page.root }}/"
><span
class=
"glyphicon glyphicon-menu-up"
></span></a>
{% endif %}
</h3>
</div>
<div
class=
"col-md-10"
>
{% if include.episode_navbar_title %}
<h3
class=
"maintitle"
><a
href=
"{{ page.root }}/"
>
{{ site.title }}
</a></h3>
<h1
class=
"maintitle"
>
{{ page.title }}
</h1>
{% endif %}
</div>
<div
class=
"col-md-1"
>
<h3>
{% if next_episode %}
<a
href=
"{{ page.root }}{{ next_episode.url }}"
><span
class=
"glyphicon glyphicon-menu-right"
></span></a>
{% else %}
<a
href=
"{{ page.root }}/"
><span
class=
"glyphicon glyphicon-menu-up"
></span></a>
{% endif %}
</h3>
</div>
</div>
_includes/lesson_footer.html
View file @
cf155463
<hr/>
<footer>
<div
class=
"row"
>
<div
class=
"col-md-6"
align=
"left"
>
...
...
_includes/workshop_footer.html
View file @
cf155463
<hr/>
<footer>
<div
class=
"row"
>
<div
class=
"col-md-6"
align=
"left"
>
...
...
_layouts/break.html
View file @
cf155463
---
layout: base
---
{% include episode_
title.html
%}
{% include episode_
navbar.html episode_navbar_title=true
%}
{% include episode_break.html %}
{{content}}
{% include episode_navbar.html episode_navbar_title=false %}
_layouts/episode.html
View file @
cf155463
---
layout: base
---
{% include episode_
title.html
%}
{% include episode_
navbar.html episode_navbar_title=true
%}
{% include episode_overview.html %}
{{content}}
{% include episode_keypoints.html %}
{% include episode_navbar.html episode_navbar_title=false %}
Write
Preview
Supports
Markdown
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